@trendyol/baklava 3.0.0-beta.3 → 3.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/assets/sorting_asc.svg +4 -0
  2. package/dist/assets/sorting_desc.svg +4 -0
  3. package/dist/baklava-react.d.ts +45 -0
  4. package/dist/baklava-react.d.ts.map +1 -1
  5. package/dist/baklava-react.js +1 -1
  6. package/dist/baklava-react.js.map +3 -3
  7. package/dist/baklava-vue.d.ts +6 -0
  8. package/dist/baklava.d.ts +6 -0
  9. package/dist/baklava.d.ts.map +1 -1
  10. package/dist/baklava.js +1 -1
  11. package/dist/{chunk-VXYXKLNG.js → chunk-3IQYFKUZ.js} +2 -2
  12. package/dist/{chunk-GHYIIGW6.js → chunk-3OCSISWP.js} +33 -33
  13. package/dist/{chunk-GHYIIGW6.js.map → chunk-3OCSISWP.js.map} +2 -2
  14. package/dist/chunk-6DJUQN3S.js +2 -0
  15. package/dist/chunk-6DJUQN3S.js.map +7 -0
  16. package/dist/chunk-6FHZDUYQ.js +16 -0
  17. package/dist/chunk-6FHZDUYQ.js.map +7 -0
  18. package/dist/{chunk-WPMIVZ4A.js → chunk-DR4D2GMR.js} +2 -2
  19. package/dist/{chunk-PWZJTYMH.js → chunk-FPDUGGJ5.js} +2 -2
  20. package/dist/chunk-HMDGICS5.js +2 -0
  21. package/dist/chunk-HMDGICS5.js.map +7 -0
  22. package/dist/chunk-HZ6A5QFC.js +2 -0
  23. package/dist/chunk-HZ6A5QFC.js.map +7 -0
  24. package/dist/{chunk-2YD3I4BZ.js → chunk-IU67AS3O.js} +2 -2
  25. package/dist/chunk-K3IALLEI.js +2 -0
  26. package/dist/chunk-K3IALLEI.js.map +7 -0
  27. package/dist/chunk-TI6K2YFV.js +11 -0
  28. package/dist/chunk-TI6K2YFV.js.map +7 -0
  29. package/dist/chunk-WJ2RNEDL.js +8 -0
  30. package/dist/chunk-WJ2RNEDL.js.map +7 -0
  31. package/dist/chunk-XDUIVR6I.js +2 -0
  32. package/dist/chunk-XDUIVR6I.js.map +7 -0
  33. package/dist/components/checkbox-group/bl-checkbox-group.js +1 -1
  34. package/dist/components/checkbox-group/checkbox/bl-checkbox.js +1 -1
  35. package/dist/components/icon/icon-list.d.ts +1 -1
  36. package/dist/components/icon/icon-list.d.ts.map +1 -1
  37. package/dist/components/icon/icon-list.js +1 -1
  38. package/dist/components/icon/icon-list.js.map +2 -2
  39. package/dist/components/input/bl-input.js +1 -1
  40. package/dist/components/pagination/bl-pagination.js +1 -1
  41. package/dist/components/radio-group/bl-radio-group.js +1 -1
  42. package/dist/components/radio-group/radio/bl-radio.js +1 -1
  43. package/dist/components/select/bl-select.d.ts.map +1 -1
  44. package/dist/components/select/bl-select.js +1 -1
  45. package/dist/components/tab-group/bl-tab-group.js +1 -1
  46. package/dist/components/table/bl-table.d.ts +120 -0
  47. package/dist/components/table/bl-table.d.ts.map +1 -0
  48. package/dist/components/table/bl-table.js +2 -0
  49. package/dist/components/table/bl-table.js.map +7 -0
  50. package/dist/components/table/bl-table.test.d.ts +6 -0
  51. package/dist/components/table/bl-table.test.d.ts.map +1 -0
  52. package/dist/components/table/table-body/bl-table-body.d.ts +19 -0
  53. package/dist/components/table/table-body/bl-table-body.d.ts.map +1 -0
  54. package/dist/components/table/table-body/bl-table-body.js +2 -0
  55. package/dist/components/table/table-body/bl-table-body.js.map +7 -0
  56. package/dist/components/table/table-body/bl-table-body.test.d.ts +2 -0
  57. package/dist/components/table/table-body/bl-table-body.test.d.ts.map +1 -0
  58. package/dist/components/table/table-cell/bl-table-cell.d.ts +35 -0
  59. package/dist/components/table/table-cell/bl-table-cell.d.ts.map +1 -0
  60. package/dist/components/table/table-cell/bl-table-cell.js +2 -0
  61. package/dist/components/table/table-cell/bl-table-cell.js.map +7 -0
  62. package/dist/components/table/table-cell/bl-table-cell.test.d.ts +2 -0
  63. package/dist/components/table/table-cell/bl-table-cell.test.d.ts.map +1 -0
  64. package/dist/components/table/table-header/bl-table-header.d.ts +22 -0
  65. package/dist/components/table/table-header/bl-table-header.d.ts.map +1 -0
  66. package/dist/components/table/table-header/bl-table-header.js +2 -0
  67. package/dist/components/table/table-header/bl-table-header.js.map +7 -0
  68. package/dist/components/table/table-header/bl-table-header.test.d.ts +2 -0
  69. package/dist/components/table/table-header/bl-table-header.test.d.ts.map +1 -0
  70. package/dist/components/table/table-header-cell/bl-table-header-cell.d.ts +43 -0
  71. package/dist/components/table/table-header-cell/bl-table-header-cell.d.ts.map +1 -0
  72. package/dist/components/table/table-header-cell/bl-table-header-cell.js +2 -0
  73. package/dist/components/table/table-header-cell/bl-table-header-cell.js.map +7 -0
  74. package/dist/components/table/table-header-cell/bl-table-header-cell.test.d.ts +2 -0
  75. package/dist/components/table/table-header-cell/bl-table-header-cell.test.d.ts.map +1 -0
  76. package/dist/components/table/table-row/bl-table-row.d.ts +31 -0
  77. package/dist/components/table/table-row/bl-table-row.d.ts.map +1 -0
  78. package/dist/components/table/table-row/bl-table-row.js +2 -0
  79. package/dist/components/table/table-row/bl-table-row.js.map +7 -0
  80. package/dist/components/table/table-row/bl-table-row.test.d.ts +2 -0
  81. package/dist/components/table/table-row/bl-table-row.test.d.ts.map +1 -0
  82. package/dist/components/textarea/bl-textarea.js +1 -1
  83. package/dist/custom-elements.json +561 -0
  84. package/package.json +1 -1
  85. package/dist/chunk-DJOD4BTL.js +0 -2
  86. package/dist/chunk-DJOD4BTL.js.map +0 -7
  87. /package/dist/{chunk-VXYXKLNG.js.map → chunk-3IQYFKUZ.js.map} +0 -0
  88. /package/dist/{chunk-WPMIVZ4A.js.map → chunk-DR4D2GMR.js.map} +0 -0
  89. /package/dist/{chunk-PWZJTYMH.js.map → chunk-FPDUGGJ5.js.map} +0 -0
  90. /package/dist/{chunk-2YD3I4BZ.js.map → chunk-IU67AS3O.js.map} +0 -0
@@ -2326,6 +2326,188 @@
2326
2326
  }
2327
2327
  ]
2328
2328
  },
2329
+ {
2330
+ "kind": "javascript-module",
2331
+ "path": "src/components/table/bl-table.ts",
2332
+ "declarations": [
2333
+ {
2334
+ "kind": "variable",
2335
+ "name": "blTableTag",
2336
+ "type": {
2337
+ "text": "string"
2338
+ },
2339
+ "default": "\"bl-table\""
2340
+ },
2341
+ {
2342
+ "kind": "variable",
2343
+ "name": "blSortChangeEventName",
2344
+ "type": {
2345
+ "text": "string"
2346
+ },
2347
+ "default": "\"bl-sort\""
2348
+ },
2349
+ {
2350
+ "kind": "variable",
2351
+ "name": "blRowSelectChangeEventName",
2352
+ "type": {
2353
+ "text": "string"
2354
+ },
2355
+ "default": "\"bl-row-select\""
2356
+ },
2357
+ {
2358
+ "kind": "class",
2359
+ "description": "",
2360
+ "name": "BlTable",
2361
+ "events": [
2362
+ {
2363
+ "type": {
2364
+ "text": "CustomEvent<string[]>"
2365
+ },
2366
+ "description": "Fires when table sort options changed",
2367
+ "name": "blSortChangeEventName"
2368
+ },
2369
+ {
2370
+ "type": {
2371
+ "text": "CustomEvent<string[]>"
2372
+ },
2373
+ "description": "Fires when selected table rows changed",
2374
+ "name": "blRowSelectChangeEventName"
2375
+ }
2376
+ ],
2377
+ "attributes": [
2378
+ {
2379
+ "name": "selected",
2380
+ "type": {
2381
+ "text": "string[]"
2382
+ },
2383
+ "description": "Selected table row selection key list",
2384
+ "fieldName": "selected"
2385
+ },
2386
+ {
2387
+ "name": "selectable",
2388
+ "type": {
2389
+ "text": "boolean"
2390
+ },
2391
+ "default": "false",
2392
+ "description": "Sets table row as selectable",
2393
+ "fieldName": "selectable"
2394
+ },
2395
+ {
2396
+ "name": "multiple",
2397
+ "type": {
2398
+ "text": "boolean"
2399
+ },
2400
+ "default": "false",
2401
+ "description": "Sets table row multiple selection enable",
2402
+ "fieldName": "multiple"
2403
+ },
2404
+ {
2405
+ "name": "sortable",
2406
+ "type": {
2407
+ "text": "boolean"
2408
+ },
2409
+ "default": "false",
2410
+ "description": "Sets table as sortable",
2411
+ "fieldName": "sortable"
2412
+ },
2413
+ {
2414
+ "name": "sticky-first-column",
2415
+ "type": {
2416
+ "text": "boolean"
2417
+ },
2418
+ "default": "false",
2419
+ "description": "Sets table first column as sticky",
2420
+ "fieldName": "stickyFirstColumn"
2421
+ },
2422
+ {
2423
+ "name": "sticky-last-column",
2424
+ "type": {
2425
+ "text": "boolean"
2426
+ },
2427
+ "default": "false",
2428
+ "description": "Sets table last column as sticky",
2429
+ "fieldName": "stickyLastColumn"
2430
+ },
2431
+ {
2432
+ "name": "sort-key",
2433
+ "type": {
2434
+ "text": "string"
2435
+ },
2436
+ "description": "Sets table sorted column key",
2437
+ "fieldName": "sortKey"
2438
+ },
2439
+ {
2440
+ "name": "sort-direction",
2441
+ "type": {
2442
+ "text": "SortDirection"
2443
+ },
2444
+ "description": "Sets table sorting direction",
2445
+ "fieldName": "sortDirection"
2446
+ }
2447
+ ],
2448
+ "superclass": {
2449
+ "name": "LitElement",
2450
+ "package": "lit"
2451
+ },
2452
+ "tagName": "bl-table",
2453
+ "summary": [
2454
+ {
2455
+ "name": "Baklava",
2456
+ "description": "Table component"
2457
+ }
2458
+ ],
2459
+ "jsDoc": "/**\n * @tag bl-table\n * @summary Baklava Table component\n *\n */",
2460
+ "tag": [
2461
+ {
2462
+ "name": "bl-table",
2463
+ "description": ""
2464
+ }
2465
+ ],
2466
+ "customElement": true
2467
+ }
2468
+ ],
2469
+ "exports": [
2470
+ {
2471
+ "kind": "js",
2472
+ "name": "blTableTag",
2473
+ "declaration": {
2474
+ "name": "blTableTag",
2475
+ "module": "src/components/table/bl-table.ts"
2476
+ }
2477
+ },
2478
+ {
2479
+ "kind": "js",
2480
+ "name": "blSortChangeEventName",
2481
+ "declaration": {
2482
+ "name": "blSortChangeEventName",
2483
+ "module": "src/components/table/bl-table.ts"
2484
+ }
2485
+ },
2486
+ {
2487
+ "kind": "js",
2488
+ "name": "blRowSelectChangeEventName",
2489
+ "declaration": {
2490
+ "name": "blRowSelectChangeEventName",
2491
+ "module": "src/components/table/bl-table.ts"
2492
+ }
2493
+ },
2494
+ {
2495
+ "kind": "js",
2496
+ "name": "default",
2497
+ "declaration": {
2498
+ "name": "BlTable",
2499
+ "module": "src/components/table/bl-table.ts"
2500
+ }
2501
+ },
2502
+ {
2503
+ "kind": "custom-element-definition",
2504
+ "declaration": {
2505
+ "name": "BlTable",
2506
+ "module": "src/components/table/bl-table.ts"
2507
+ }
2508
+ }
2509
+ ]
2510
+ },
2329
2511
  {
2330
2512
  "kind": "javascript-module",
2331
2513
  "path": "src/components/textarea/bl-textarea.ts",
@@ -3497,6 +3679,385 @@
3497
3679
  }
3498
3680
  }
3499
3681
  ]
3682
+ },
3683
+ {
3684
+ "kind": "javascript-module",
3685
+ "path": "src/components/table/table-body/bl-table-body.ts",
3686
+ "declarations": [
3687
+ {
3688
+ "kind": "variable",
3689
+ "name": "blTableBodyTag",
3690
+ "type": {
3691
+ "text": "string"
3692
+ },
3693
+ "default": "\"bl-table-body\""
3694
+ },
3695
+ {
3696
+ "kind": "class",
3697
+ "description": "",
3698
+ "name": "BlTableBody",
3699
+ "superclass": {
3700
+ "name": "LitElement",
3701
+ "package": "lit"
3702
+ },
3703
+ "tagName": "bl-table-body",
3704
+ "summary": [
3705
+ {
3706
+ "name": "Baklava",
3707
+ "description": "Table component"
3708
+ }
3709
+ ],
3710
+ "jsDoc": "/**\n * @tag bl-table-body\n * @summary Baklava Table component\n */",
3711
+ "tag": [
3712
+ {
3713
+ "name": "bl-table-body",
3714
+ "description": ""
3715
+ }
3716
+ ],
3717
+ "customElement": true
3718
+ }
3719
+ ],
3720
+ "exports": [
3721
+ {
3722
+ "kind": "js",
3723
+ "name": "blTableBodyTag",
3724
+ "declaration": {
3725
+ "name": "blTableBodyTag",
3726
+ "module": "src/components/table/table-body/bl-table-body.ts"
3727
+ }
3728
+ },
3729
+ {
3730
+ "kind": "js",
3731
+ "name": "default",
3732
+ "declaration": {
3733
+ "name": "BlTableBody",
3734
+ "module": "src/components/table/table-body/bl-table-body.ts"
3735
+ }
3736
+ },
3737
+ {
3738
+ "kind": "custom-element-definition",
3739
+ "declaration": {
3740
+ "name": "BlTableBody",
3741
+ "module": "src/components/table/table-body/bl-table-body.ts"
3742
+ }
3743
+ }
3744
+ ]
3745
+ },
3746
+ {
3747
+ "kind": "javascript-module",
3748
+ "path": "src/components/table/table-cell/bl-table-cell.ts",
3749
+ "declarations": [
3750
+ {
3751
+ "kind": "variable",
3752
+ "name": "blTableCellTag",
3753
+ "type": {
3754
+ "text": "string"
3755
+ },
3756
+ "default": "\"bl-table-cell\""
3757
+ },
3758
+ {
3759
+ "kind": "class",
3760
+ "description": "",
3761
+ "name": "BlTableCell",
3762
+ "attributes": [
3763
+ {
3764
+ "name": "disabled",
3765
+ "type": {
3766
+ "text": "boolean"
3767
+ },
3768
+ "default": "false",
3769
+ "description": "Disable selection",
3770
+ "fieldName": "disableSelection"
3771
+ }
3772
+ ],
3773
+ "superclass": {
3774
+ "name": "LitElement",
3775
+ "package": "lit"
3776
+ },
3777
+ "tagName": "bl-table-cell",
3778
+ "summary": [
3779
+ {
3780
+ "name": "Baklava",
3781
+ "description": "Table component"
3782
+ }
3783
+ ],
3784
+ "jsDoc": "/**\n * @tag bl-table-cell\n * @summary Baklava Table component\n */",
3785
+ "tag": [
3786
+ {
3787
+ "name": "bl-table-cell",
3788
+ "description": ""
3789
+ }
3790
+ ],
3791
+ "customElement": true
3792
+ }
3793
+ ],
3794
+ "exports": [
3795
+ {
3796
+ "kind": "js",
3797
+ "name": "blTableCellTag",
3798
+ "declaration": {
3799
+ "name": "blTableCellTag",
3800
+ "module": "src/components/table/table-cell/bl-table-cell.ts"
3801
+ }
3802
+ },
3803
+ {
3804
+ "kind": "js",
3805
+ "name": "default",
3806
+ "declaration": {
3807
+ "name": "BlTableCell",
3808
+ "module": "src/components/table/table-cell/bl-table-cell.ts"
3809
+ }
3810
+ },
3811
+ {
3812
+ "kind": "custom-element-definition",
3813
+ "declaration": {
3814
+ "name": "BlTableCell",
3815
+ "module": "src/components/table/table-cell/bl-table-cell.ts"
3816
+ }
3817
+ }
3818
+ ]
3819
+ },
3820
+ {
3821
+ "kind": "javascript-module",
3822
+ "path": "src/components/table/table-header/bl-table-header.ts",
3823
+ "declarations": [
3824
+ {
3825
+ "kind": "variable",
3826
+ "name": "blTableHeaderTag",
3827
+ "type": {
3828
+ "text": "string"
3829
+ },
3830
+ "default": "\"bl-table-header\""
3831
+ },
3832
+ {
3833
+ "kind": "class",
3834
+ "description": "",
3835
+ "name": "BlTableHeader",
3836
+ "attributes": [
3837
+ {
3838
+ "name": "sticky",
3839
+ "type": {
3840
+ "text": "boolean"
3841
+ },
3842
+ "default": "false",
3843
+ "description": "Set table header as sticky",
3844
+ "fieldName": "sticky"
3845
+ }
3846
+ ],
3847
+ "superclass": {
3848
+ "name": "LitElement",
3849
+ "package": "lit"
3850
+ },
3851
+ "tagName": "bl-table-header",
3852
+ "summary": [
3853
+ {
3854
+ "name": "Baklava",
3855
+ "description": "Table component"
3856
+ }
3857
+ ],
3858
+ "jsDoc": "/**\n * @tag bl-table-header\n * @summary Baklava Table component\n */",
3859
+ "tag": [
3860
+ {
3861
+ "name": "bl-table-header",
3862
+ "description": ""
3863
+ }
3864
+ ],
3865
+ "customElement": true
3866
+ }
3867
+ ],
3868
+ "exports": [
3869
+ {
3870
+ "kind": "js",
3871
+ "name": "blTableHeaderTag",
3872
+ "declaration": {
3873
+ "name": "blTableHeaderTag",
3874
+ "module": "src/components/table/table-header/bl-table-header.ts"
3875
+ }
3876
+ },
3877
+ {
3878
+ "kind": "js",
3879
+ "name": "default",
3880
+ "declaration": {
3881
+ "name": "BlTableHeader",
3882
+ "module": "src/components/table/table-header/bl-table-header.ts"
3883
+ }
3884
+ },
3885
+ {
3886
+ "kind": "custom-element-definition",
3887
+ "declaration": {
3888
+ "name": "BlTableHeader",
3889
+ "module": "src/components/table/table-header/bl-table-header.ts"
3890
+ }
3891
+ }
3892
+ ]
3893
+ },
3894
+ {
3895
+ "kind": "javascript-module",
3896
+ "path": "src/components/table/table-header-cell/bl-table-header-cell.ts",
3897
+ "declarations": [
3898
+ {
3899
+ "kind": "variable",
3900
+ "name": "blTableHeaderCellTag",
3901
+ "type": {
3902
+ "text": "string"
3903
+ },
3904
+ "default": "\"bl-table-header-cell\""
3905
+ },
3906
+ {
3907
+ "kind": "class",
3908
+ "description": "",
3909
+ "name": "BlTableHeaderCell",
3910
+ "cssProperties": [
3911
+ {
3912
+ "description": "Set the column width",
3913
+ "name": "--bl-table-header-cell-width"
3914
+ },
3915
+ {
3916
+ "description": "Set the column min width",
3917
+ "name": "--bl-table-header-cell-min-width"
3918
+ }
3919
+ ],
3920
+ "attributes": [
3921
+ {
3922
+ "name": "sort-key",
3923
+ "type": {
3924
+ "text": "string"
3925
+ },
3926
+ "default": "\"\"",
3927
+ "description": "Set key value for column",
3928
+ "fieldName": "sortKey"
3929
+ }
3930
+ ],
3931
+ "superclass": {
3932
+ "name": "LitElement",
3933
+ "package": "lit"
3934
+ },
3935
+ "tagName": "bl-table-header-cell",
3936
+ "summary": [
3937
+ {
3938
+ "name": "Baklava",
3939
+ "description": "Table component"
3940
+ }
3941
+ ],
3942
+ "jsDoc": "/**\n * @tag bl-table-header-cell\n * @summary Baklava Table component\n *\n * @cssproperty [--bl-table-header-cell-width] Set the column width\n * @cssproperty [--bl-table-header-cell-min-width] Set the column min width\n */",
3943
+ "tag": [
3944
+ {
3945
+ "name": "bl-table-header-cell",
3946
+ "description": ""
3947
+ }
3948
+ ],
3949
+ "cssproperty": [
3950
+ {
3951
+ "name": "--bl-table-header-cell-width",
3952
+ "description": "Set the column width"
3953
+ },
3954
+ {
3955
+ "name": "--bl-table-header-cell-min-width",
3956
+ "description": "Set the column min width"
3957
+ }
3958
+ ],
3959
+ "customElement": true
3960
+ }
3961
+ ],
3962
+ "exports": [
3963
+ {
3964
+ "kind": "js",
3965
+ "name": "blTableHeaderCellTag",
3966
+ "declaration": {
3967
+ "name": "blTableHeaderCellTag",
3968
+ "module": "src/components/table/table-header-cell/bl-table-header-cell.ts"
3969
+ }
3970
+ },
3971
+ {
3972
+ "kind": "js",
3973
+ "name": "default",
3974
+ "declaration": {
3975
+ "name": "BlTableHeaderCell",
3976
+ "module": "src/components/table/table-header-cell/bl-table-header-cell.ts"
3977
+ }
3978
+ },
3979
+ {
3980
+ "kind": "custom-element-definition",
3981
+ "declaration": {
3982
+ "name": "BlTableHeaderCell",
3983
+ "module": "src/components/table/table-header-cell/bl-table-header-cell.ts"
3984
+ }
3985
+ }
3986
+ ]
3987
+ },
3988
+ {
3989
+ "kind": "javascript-module",
3990
+ "path": "src/components/table/table-row/bl-table-row.ts",
3991
+ "declarations": [
3992
+ {
3993
+ "kind": "variable",
3994
+ "name": "blTableRowTag",
3995
+ "type": {
3996
+ "text": "string"
3997
+ },
3998
+ "default": "\"bl-table-row\""
3999
+ },
4000
+ {
4001
+ "kind": "class",
4002
+ "description": "",
4003
+ "name": "BlTableRow",
4004
+ "attributes": [
4005
+ {
4006
+ "name": "selection-key",
4007
+ "type": {
4008
+ "text": "string"
4009
+ },
4010
+ "default": "\"\"",
4011
+ "description": "selection key for table row",
4012
+ "fieldName": "selectionKey"
4013
+ }
4014
+ ],
4015
+ "superclass": {
4016
+ "name": "LitElement",
4017
+ "package": "lit"
4018
+ },
4019
+ "tagName": "bl-table-row",
4020
+ "summary": [
4021
+ {
4022
+ "name": "Baklava",
4023
+ "description": "Table component"
4024
+ }
4025
+ ],
4026
+ "jsDoc": "/**\n * @tag bl-table-row\n * @summary Baklava Table component\n */",
4027
+ "tag": [
4028
+ {
4029
+ "name": "bl-table-row",
4030
+ "description": ""
4031
+ }
4032
+ ],
4033
+ "customElement": true
4034
+ }
4035
+ ],
4036
+ "exports": [
4037
+ {
4038
+ "kind": "js",
4039
+ "name": "blTableRowTag",
4040
+ "declaration": {
4041
+ "name": "blTableRowTag",
4042
+ "module": "src/components/table/table-row/bl-table-row.ts"
4043
+ }
4044
+ },
4045
+ {
4046
+ "kind": "js",
4047
+ "name": "default",
4048
+ "declaration": {
4049
+ "name": "BlTableRow",
4050
+ "module": "src/components/table/table-row/bl-table-row.ts"
4051
+ }
4052
+ },
4053
+ {
4054
+ "kind": "custom-element-definition",
4055
+ "declaration": {
4056
+ "name": "BlTableRow",
4057
+ "module": "src/components/table/table-row/bl-table-row.ts"
4058
+ }
4059
+ }
4060
+ ]
3500
4061
  }
3501
4062
  ]
3502
4063
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trendyol/baklava",
3
3
  "type": "module",
4
- "version": "3.0.0-beta.3",
4
+ "version": "3.0.0-beta.5",
5
5
  "description": "Trendyol Baklava Design System",
6
6
  "main": "dist/baklava.js",
7
7
  "module": "dist/baklava.js",
@@ -1,2 +0,0 @@
1
- var d=function(u,c,g,o){if(g==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?u!==c||!o:!c.has(u))throw new TypeError("Cannot read private member from an object whose class did not declare it");return g==="m"?o:g==="a"?o.call(u):o?o.value:c.get(u)},w=function(u,c,g,o,y){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!y)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?u!==c||!y:!c.has(u))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?y.call(u,g):y?y.value=g:c.set(u,g),g};function pt(u){var c,g,o,y,S,P,E,Z,_,D,$,U,O,k,T,V,z,q,B;class J extends u{constructor(...s){var n,m,p;super(...s),c.add(this),this.internals=this.attachInternals(),g.set(this,!1),o.set(this,!1),y.set(this,!1),S.set(this,void 0),P.set(this,void 0),E.set(this,!0),_.set(this,""),D.set(this,()=>{w(this,y,!0,"f"),w(this,g,!0,"f"),d(this,c,"m",V).call(this)}),$.set(this,()=>{w(this,g,!1,"f"),d(this,c,"m",z).call(this,this.shouldFormValueUpdate()?d(this,_,"f"):""),!this.validity.valid&&d(this,y,"f")&&w(this,o,!0,"f");let F=d(this,c,"m",V).call(this);this.validationMessageCallback&&this.validationMessageCallback(F?this.internals.validationMessage:"")}),U.set(this,()=>{var F;d(this,E,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),w(this,E,!1,"f")),w(this,y,!0,"f"),w(this,o,!0,"f"),d(this,c,"m",V).call(this),(F=this===null||this===void 0?void 0:this.validationMessageCallback)===null||F===void 0||F.call(this,this.showError?this.internals.validationMessage:"")}),O.set(this,void 0),k.set(this,!1),T.set(this,Promise.resolve()),(n=this.addEventListener)===null||n===void 0||n.call(this,"focus",d(this,D,"f")),(m=this.addEventListener)===null||m===void 0||m.call(this,"blur",d(this,$,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"invalid",d(this,U,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let s=this.validators.map(p=>p.attribute).flat(),n=super.observedAttributes||[];return[...new Set([...n,...s])]}static getValidator(s){return this.validators.find(n=>n.attribute===s)||null}static getValidators(s){return this.validators.filter(n=>{var m;if(n.attribute===s||!((m=n.attribute)===null||m===void 0)&&m.includes(s))return!0})}get form(){return this.internals.form}get showError(){return d(this,c,"m",V).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(s,n,m){var p;(p=super.attributeChangedCallback)===null||p===void 0||p.call(this,s,n,m);let x=this.constructor.getValidators(s);x!=null&&x.length&&this.validationTarget&&this.setValue(d(this,_,"f"))}setValue(s){var n;w(this,o,!1,"f"),(n=this.validationMessageCallback)===null||n===void 0||n.call(this,""),w(this,_,s,"f");let p=this.shouldFormValueUpdate()?s:null;this.internals.setFormValue(p),d(this,c,"m",z).call(this,p),this.valueChangedCallback&&this.valueChangedCallback(p),d(this,c,"m",V).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(s=>s(d(this,T,"f")))}formResetCallback(){var s,n;w(this,y,!1,"f"),w(this,o,!1,"f"),d(this,c,"m",V).call(this),(s=this.resetFormControl)===null||s===void 0||s.call(this),(n=this.validationMessageCallback)===null||n===void 0||n.call(this,d(this,c,"m",V).call(this)?this.validationMessage:"")}}return g=new WeakMap,o=new WeakMap,y=new WeakMap,S=new WeakMap,P=new WeakMap,E=new WeakMap,_=new WeakMap,D=new WeakMap,$=new WeakMap,U=new WeakMap,O=new WeakMap,k=new WeakMap,T=new WeakMap,c=new WeakSet,Z=function(){let s=this.getRootNode(),n=`${this.localName}[name="${this.getAttribute("name")}"]`;return s.querySelectorAll(n)},V=function(){if(this.hasAttribute("disabled"))return!1;let s=d(this,o,"f")||d(this,y,"f")&&!this.validity.valid&&!d(this,g,"f");return s&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),s},z=function(s){let n=this.constructor,m={},p=n.validators,F=[],x=p.some(M=>M.isValid instanceof Promise);d(this,k,"f")||(w(this,T,new Promise(M=>{w(this,O,M,"f")}),"f"),w(this,k,!0,"f")),d(this,S,"f")&&(d(this,S,"f").abort(),w(this,P,d(this,S,"f"),"f"));let R=new AbortController;w(this,S,R,"f");let L,H=!1;p.length&&(p.forEach(M=>{let K=M.key||"customError",N=M.isValid(this,s,R.signal);N instanceof Promise?(F.push(N),N.then(G=>{G!=null&&(m[K]=!G,L=d(this,c,"m",B).call(this,M,s),d(this,c,"m",q).call(this,m,L))})):(m[K]=!N,this.validity[K]!==!N&&(H=!0),!N&&!L&&(L=d(this,c,"m",B).call(this,M,s)))}),Promise.allSettled(F).then(()=>{var M;R!=null&&R.signal.aborted||(w(this,k,!1,"f"),(M=d(this,O,"f"))===null||M===void 0||M.call(this))}),(H||!x)&&d(this,c,"m",q).call(this,m,L))},q=function(s,n){if(this.validationTarget)this.internals.setValidity(s,n,this.validationTarget),w(this,E,!1,"f");else{if(this.internals.setValidity(s,n),this.internals.validity.valid)return;w(this,E,!0,"f")}},B=function(s,n){if(this.validityCallback){let m=this.validityCallback(s.key||"customError");if(m)return m}return s.message instanceof Function?s.message(this,n):s.message},J}(function(){"use strict";let u=new WeakMap,c=new WeakMap,g=new WeakMap,o=new WeakMap,y=new WeakMap,S=new WeakMap,P=new WeakMap,E=new WeakMap,Z=new WeakMap,_=new WeakMap,D=new WeakMap,$=new WeakMap,U=new WeakMap,O=new WeakMap,k=new WeakMap,T={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},V=(e,t)=>{for(let a in T){t[a]=null;let i=null,r=T[a];Object.defineProperty(t,a,{get(){return i},set(h){i=h,e.isConnected?e.setAttribute(r,h):_.set(e,t)}})}};function z(e){let t=o.get(e),{form:a}=t;G(e,a,t),L(e,t.labels)}let q=(e,t=!1)=>{let a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(h){return o.has(h)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),i=a.nextNode(),r=!t||e.disabled;for(;i;)i.formDisabledCallback&&r&&p(i,e.disabled),i=a.nextNode()},B={attributes:!0,attributeFilter:["disabled"]},J=new MutationObserver(e=>{for(let t of e){let a=t.target;a.constructor.formAssociated?p(a,a.hasAttribute("disabled")):a.localName==="fieldset"&&q(a)}});function A(e){e.forEach(t=>{let{addedNodes:a,removedNodes:i}=t,r=Array.from(a),h=Array.from(i);r.forEach(l=>{if(o.has(l)&&l.constructor.formAssociated&&z(l),_.has(l)){let v=_.get(l);Object.keys(T).filter(f=>v[f]!==null).forEach(f=>{l.setAttribute(T[f],v[f])}),_.delete(l)}if(k.has(l)){let v=k.get(l);l.setAttribute("internals-valid",v.validity.valid.toString()),l.setAttribute("internals-invalid",(!v.validity.valid).toString()),l.setAttribute("aria-invalid",(!v.validity.valid).toString()),k.delete(l)}if(l.localName==="form"){let v=E.get(l),C=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode(b){return o.has(b)&&!(v&&v.has(b))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),f=C.nextNode();for(;f;)z(f),f=C.nextNode()}l.localName==="fieldset"&&(J.observe(l,B),q(l,!0))}),h.forEach(l=>{let v=o.get(l);v&&g.get(v)&&F(v),P.has(l)&&P.get(l).disconnect()})})}function s(e){e.forEach(t=>{let{removedNodes:a}=t;a.forEach(i=>{let r=U.get(t.target);o.has(i)&&it(i),r.disconnect()})})}let n=e=>{let t=new MutationObserver(s);t.observe(e,{childList:!0}),U.set(e,t)};new MutationObserver(A);let m={childList:!0,subtree:!0},p=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},F=e=>{g.get(e).forEach(a=>{a.remove()}),g.set(e,[])},x=(e,t)=>{let a=document.createElement("input");return a.type="hidden",a.name=e.getAttribute("name"),e.after(a),g.get(t).push(a),a},R=(e,t)=>{g.set(t,[]),J.observe(e,B)},L=(e,t)=>{if(t.length){Array.from(t).forEach(i=>i.addEventListener("click",e.click.bind(e)));let a=t[0].id;t[0].id||(a=`${t[0].htmlFor}_Label`,t[0].id=a),e.setAttribute("aria-labelledby",a)}},H=e=>{let t=Array.from(e.elements).filter(h=>!h.tagName.includes("-")&&h.validity).map(h=>h.validity.valid),a=E.get(e)||[],i=Array.from(a).filter(h=>h.isConnected).map(h=>o.get(h).validity.valid),r=[...t,...i].includes(!1);e.toggleAttribute("internals-invalid",r),e.toggleAttribute("internals-valid",!r)},M=e=>{H(Q(e.target))},K=e=>{H(Q(e.target))},N=e=>{let t=":is(:is(button, input)[type=submit], button:not([type])):not([disabled])",a=`${t}:not([form])`;e.id&&(a+=`,${t}[form='${e.id}']`),e.addEventListener("click",i=>{if(i.target.closest(a)){let h=E.get(e);if(e.noValidate)return;h.size&&Array.from(h).reverse().map(C=>o.get(C).reportValidity()).includes(!1)&&i.preventDefault()}})},et=e=>{let t=E.get(e.target);t&&t.size&&t.forEach(a=>{a.constructor.formAssociated&&a.formResetCallback&&a.formResetCallback.apply(a)})},G=(e,t,a)=>{if(t){let i=E.get(t);if(i)i.add(e);else{let r=new Set;r.add(e),E.set(t,r),N(t),t.addEventListener("reset",et),t.addEventListener("input",M),t.addEventListener("change",K)}S.set(t,{ref:e,internals:a}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout(()=>{e.formAssociatedCallback.apply(e,[t])},0),H(t)}},Q=e=>{let t=e.parentNode;return t&&t.tagName!=="FORM"&&(t=Q(t)),t},I=(e,t,a=DOMException)=>{if(!e.constructor.formAssociated)throw new a(t)},at=(e,t,a)=>{let i=E.get(e);return i&&i.size&&i.forEach(r=>{o.get(r)[a]()||(t=!1)}),t},it=e=>{if(e.constructor.formAssociated){let t=o.get(e),{labels:a,form:i}=t;L(e,a),G(e,i,t)}};class nt{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}let lt=e=>(e.badInput=!1,e.customError=!1,e.patternMismatch=!1,e.rangeOverflow=!1,e.rangeUnderflow=!1,e.stepMismatch=!1,e.tooLong=!1,e.tooShort=!1,e.typeMismatch=!1,e.valid=!0,e.valueMissing=!1,e),ct=(e,t,a)=>(e.valid=dt(t),Object.keys(t).forEach(i=>e[i]=t[i]),a&&H(a),e),dt=e=>{let t=!0;for(let a in e)a!=="valid"&&e[a]!==!1&&(t=!1);return t},tt=new WeakMap;class X extends Set{static get isPolyfilled(){return!0}constructor(t){if(super(),!t||!t.tagName||t.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");tt.set(this,t)}add(t){if(!/^--/.test(t)||typeof t!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${t} must start with '--'.`);let a=super.add(t),i=tt.get(this);return i.toggleAttribute(`state${t}`,!0),i.part&&i.part.add(`state${t}`),a}clear(){for(let[t]of this.entries())this.delete(t);super.clear()}delete(t){let a=super.delete(t),i=tt.get(this);return i.toggleAttribute(`state${t}`,!1),i.part&&i.part.remove(`state${t}`),a}}function st(e,t,a,i){if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?i:a==="a"?i.call(e):i?i.value:t.get(e)}function ht(e,t,a,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,a):r?r.value=a:t.set(e,a),a}var j;class ut{constructor(t){j.set(this,void 0),ht(this,j,t,"f");for(let a=0;a<t.length;a++){let i=t[a];this[a]=i,i.hasAttribute("name")&&(this[i.getAttribute("name")]=i)}Object.freeze(this)}get length(){return st(this,j,"f").length}[(j=new WeakMap,Symbol.iterator)](){return st(this,j,"f")[Symbol.iterator]()}item(t){return this[t]==null?null:this[t]}namedItem(t){return this[t]==null?null:this[t]}}class rt{static get isPolyfilled(){return!0}constructor(t){if(!t||!t.tagName||t.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");let a=t.getRootNode(),i=new nt;this.states=new X(t),u.set(this,t),c.set(this,i),o.set(t,this),V(t,this),R(t,this),Object.seal(this),it(t),a instanceof DocumentFragment&&n(a)}checkValidity(){let t=u.get(this);if(I(t,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;let a=c.get(this);if(!a.valid){let i=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});t.dispatchEvent(i)}return a.valid}get form(){let t=u.get(this);I(t,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let a;return t.constructor.formAssociated===!0&&(a=Q(t)),a}get labels(){let t=u.get(this);I(t,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");let a=t.getAttribute("id"),i=t.getRootNode();return i&&a?i.querySelectorAll(`[for="${a}"]`):[]}reportValidity(){let t=u.get(this);if(I(t,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;let a=this.checkValidity(),i=$.get(this);if(i&&!t.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!a&&i&&(t.focus(),i.focus()),a}setFormValue(t){let a=u.get(this);if(I(a,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),F(this),t!=null&&!(t instanceof FormData)){if(a.getAttribute("name")){let i=x(a,this);i.value=t}}else t!=null&&t instanceof FormData&&Array.from(t).reverse().forEach(([i,r])=>{if(typeof r=="string"){let h=x(a,this);h.name=i,h.value=r}});Z.set(a,t)}setValidity(t,a,i){let r=u.get(this);if(I(r,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!t)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");$.set(this,i);let h=c.get(this),l={};for(let f in t)l[f]=t[f];Object.keys(l).length===0&&lt(h);let v={...h,...l};delete v.valid;let{valid:C}=ct(h,v,this.form);if(!C&&!a)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");y.set(this,C?"":a),r.isConnected?(r.toggleAttribute("internals-invalid",!C),r.toggleAttribute("internals-valid",C),r.setAttribute("aria-invalid",`${!C}`)):k.set(r,this)}get shadowRoot(){let t=u.get(this),a=D.get(t);return a||null}get validationMessage(){let t=u.get(this);return I(t,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),y.get(this)}get validity(){let t=u.get(this);return I(t,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),c.get(this)}get willValidate(){let t=u.get(this);return I(t,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(t.disabled||t.hasAttribute("disabled")||t.hasAttribute("readonly"))}}function mt(){if(!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}let t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);let a=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(i=>i in a.internals)}if(mt()){if(!window.CustomStateSet){window.CustomStateSet=X;let e=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(...t){let a=e.call(this,t);return a.states=new X(this),a}}}else{let t=function(...f){let b=r.apply(this,f),W=new MutationObserver(A);return D.set(this,b),window.ShadyDOM?W.observe(this,m):W.observe(b,m),P.set(this,W),b},a=function(...f){let b=l.apply(this,f);return at(this,b,"checkValidity")},i=function(...f){let b=v.apply(this,f);return at(this,b,"reportValidity")};window.ElementInternals=rt;let e=customElements.define;customElements.define=function(f,b,W){if(b.formAssociated){let Y=b.prototype.connectedCallback;b.prototype.connectedCallback=function(){O.has(this)||(O.set(this,!0),this.hasAttribute("disabled")&&p(this,!0)),Y!=null&&Y.apply(this)}}e.apply(customElements,[f,b,W])},HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new rt(this)};let r=Element.prototype.attachShadow;Element.prototype.attachShadow=t,new MutationObserver(A).observe(document.documentElement,m);let l=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=a;let v=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=i;let{get:C}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...f){let b=C.call(this,...f),W=Array.from(E.get(this)||[]);if(W.length===0)return b;let Y=Array.from(b).concat(W).sort((ot,ft)=>ot.compareDocumentPosition?ot.compareDocumentPosition(ft)&2?1:-1:0);return new ut(Y)}}),window.CustomStateSet||(window.CustomStateSet=X)}})();export{pt as a};
2
- //# sourceMappingURL=chunk-DJOD4BTL.js.map