ywana-core8 0.1.84 → 0.1.86

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 (72) hide show
  1. package/__previewjs__/Wrapper.tsx +8 -5
  2. package/build-doc.sh +10 -0
  3. package/dist/index.cjs +418 -118
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.css +294 -94
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.modern.js +418 -119
  8. package/dist/index.modern.js.map +1 -1
  9. package/dist/index.umd.js +420 -120
  10. package/dist/index.umd.js.map +1 -1
  11. package/doc/README.md +196 -0
  12. package/doc/package-lock.json +17298 -0
  13. package/doc/package.json +34 -0
  14. package/doc/public/index.html +22 -0
  15. package/doc/scripts/generate-examples.js +129 -0
  16. package/doc/src/App.css +171 -0
  17. package/doc/src/App.js +45 -0
  18. package/doc/src/components/ExamplePage.js +104 -0
  19. package/doc/src/components/WelcomePage.js +84 -0
  20. package/doc/src/examples/button.example.js +47 -0
  21. package/doc/src/examples/input.example.js +91 -0
  22. package/doc/src/examples-config.js +170 -0
  23. package/doc/src/index.css +237 -0
  24. package/doc/src/index.js +13 -0
  25. package/package.json +9 -2
  26. package/preview.config.js +38 -0
  27. package/src/html/accordion.example.js +2 -2
  28. package/src/html/actions-cell.css +108 -0
  29. package/src/html/actions-cell.example.js +587 -0
  30. package/src/html/actions-cell.js +260 -0
  31. package/src/html/checkbox.example.js +2 -2
  32. package/src/html/chip.example.js +2 -2
  33. package/src/html/color.example.js +2 -2
  34. package/src/html/form.example.js +2 -2
  35. package/src/html/header2.example.js +2 -2
  36. package/src/html/index.js +1 -0
  37. package/src/html/menu.css +9 -2
  38. package/src/html/menu.js +14 -2
  39. package/src/html/progress.example.js +2 -2
  40. package/src/html/property.example.js +2 -2
  41. package/src/html/radio.example.js +2 -2
  42. package/src/html/switch.example.js +2 -2
  43. package/src/html/tab.example.js +2 -2
  44. package/src/html/table.css +47 -1
  45. package/src/html/table.example.js +1012 -0
  46. package/src/html/table.js +12 -7
  47. package/src/html/table2-actions-test.js +138 -0
  48. package/src/html/table2.css +40 -3
  49. package/src/html/table2.example.js +330 -0
  50. package/src/html/table2.js +56 -13
  51. package/src/html/tokenfield.example.js +2 -2
  52. package/src/widgets/calendar/Calendar.js +1 -1
  53. /package/{ACCORDION_EVALUATION.md → doc/evalulations/ACCORDION_EVALUATION.md} +0 -0
  54. /package/{CHECKBOX_EVALUATION.md → doc/evalulations/CHECKBOX_EVALUATION.md} +0 -0
  55. /package/{CHIP_EVALUATION.md → doc/evalulations/CHIP_EVALUATION.md} +0 -0
  56. /package/{COLOR_EVALUATION.md → doc/evalulations/COLOR_EVALUATION.md} +0 -0
  57. /package/{COMPONENTS_EVALUATION.md → doc/evalulations/COMPONENTS_EVALUATION.md} +0 -0
  58. /package/{FORM_EVALUATION.md → doc/evalulations/FORM_EVALUATION.md} +0 -0
  59. /package/{HEADER_EVALUATION.md → doc/evalulations/HEADER_EVALUATION.md} +0 -0
  60. /package/{ICON_EVALUATION.md → doc/evalulations/ICON_EVALUATION.md} +0 -0
  61. /package/{LIST_EVALUATION.md → doc/evalulations/LIST_EVALUATION.md} +0 -0
  62. /package/{PROGRESS_EVALUATION.md → doc/evalulations/PROGRESS_EVALUATION.md} +0 -0
  63. /package/{RADIO_EVALUATION.md → doc/evalulations/RADIO_EVALUATION.md} +0 -0
  64. /package/{RADIO_VISUAL_FIX.md → doc/evalulations/RADIO_VISUAL_FIX.md} +0 -0
  65. /package/{SECTION_IMPROVEMENTS.md → doc/evalulations/SECTION_IMPROVEMENTS.md} +0 -0
  66. /package/{SWITCH_EVALUATION.md → doc/evalulations/SWITCH_EVALUATION.md} +0 -0
  67. /package/{SWITCH_VISUAL_FIX.md → doc/evalulations/SWITCH_VISUAL_FIX.md} +0 -0
  68. /package/{TAB_EVALUATION.md → doc/evalulations/TAB_EVALUATION.md} +0 -0
  69. /package/{TEXTFIELD_EVALUATION.md → doc/evalulations/TEXTFIELD_EVALUATION.md} +0 -0
  70. /package/{TOOLTIP_FIX.md → doc/evalulations/TOOLTIP_FIX.md} +0 -0
  71. /package/{TREE_EVALUATION.md → doc/evalulations/TREE_EVALUATION.md} +0 -0
  72. /package/src/incubator/{PDFViewer.js → pdfViewer.js} +0 -0
package/dist/index.css CHANGED
@@ -815,6 +815,212 @@ td.actions {
815
815
  color: black !important;
816
816
  }
817
817
  }
818
+ .menu-icon {
819
+ position: relative;
820
+ }
821
+
822
+ /* Solución simple: z-index muy alto para que aparezca por encima de todo */
823
+
824
+ .menu-icon > .overlay {
825
+ position: fixed;
826
+ top: 0px;
827
+ left: 0px;
828
+ width: 100vw;
829
+ height: 100vh;
830
+ z-index: 9998;
831
+ background-color: transparent;
832
+ }
833
+
834
+ .menu-icon > menu {
835
+ z-index: 9999;
836
+ position: absolute;
837
+ top: 3rem;
838
+ left: 0px;
839
+ margin: 0;
840
+ border: solid 1px var(--divider-color);
841
+ background-color: var(--paper-color);
842
+ padding: 0;
843
+ min-width: 7rem;
844
+ max-width: 14rem;
845
+ max-height: 50vh;
846
+ overflow: auto;
847
+ box-shadow: var(--shadow1);
848
+ }
849
+
850
+ .menu-icon > menu.alignRight {
851
+ left: unset;
852
+ right: 0px;
853
+ }
854
+
855
+ .menu-icon > menu.alignLeft {
856
+ left: 0px;
857
+ right: unset;
858
+ }
859
+
860
+ .menu-icon > menu ul {
861
+ list-style: none;
862
+ margin: 0;
863
+ padding: 0.5rem 0;
864
+ cursor: pointer;
865
+ }
866
+
867
+ .menu-icon > menu li {
868
+ min-height: 3rem;
869
+ padding: 0 0.5rem;
870
+ display: flex;
871
+ align-items: center;
872
+ }
873
+
874
+ .menu-icon > menu li:hover {
875
+ background-color: var(--primary-color-lighter);
876
+ }
877
+
878
+ .menu-item {
879
+ flex: 1;
880
+ display: flex;
881
+ align-items: center;
882
+ cursor: pointer;
883
+ }
884
+
885
+ .menu-item > .icon {
886
+ color: var(--text-color-light);
887
+ cursor: pointer;
888
+ }
889
+
890
+ .menu-item > label {
891
+ flex: 1;
892
+ white-space: nowrap;
893
+ padding: 0 0.5rem 0 0;
894
+ color: var(--text-color);
895
+ font-size: 0.9rem;
896
+ cursor: pointer;
897
+ }
898
+
899
+ .menu-item.disabled > label,
900
+ .menu-item.disabled > .icon {
901
+ color: var(--text-color-lighter);
902
+ cursor: initial;
903
+ }
904
+
905
+ .menu-item > .meta {
906
+ color: var(--text-color-lighter);
907
+ }
908
+
909
+ .menu-separator {
910
+ min-height: 0px !important;
911
+ height: 1px;
912
+ border-top: solid 1px var(--divider-color);
913
+ }
914
+
915
+ /* ActionsCell Component Styles */
916
+
917
+ .actions-cell {
918
+ display: inline-flex;
919
+ align-items: center;
920
+ justify-content: flex-end;
921
+ position: relative;
922
+ }
923
+
924
+ /* Modo directo - acciones visibles */
925
+ .actions-cell--direct {
926
+ overflow: hidden;
927
+ }
928
+
929
+ .actions-cell__content {
930
+ display: flex;
931
+ align-items: center;
932
+ gap: 4px;
933
+ white-space: nowrap;
934
+ overflow: hidden;
935
+ }
936
+
937
+ /* Modo menú - icono de menú */
938
+ .actions-cell--menu {
939
+ /* Los estilos del menú se heredan de menu.css */
940
+ }
941
+
942
+ /* Integración con List */
943
+ .list__item-actions .actions-cell {
944
+ opacity: 0;
945
+ transition: opacity 0.2s ease;
946
+ }
947
+
948
+ .list__item:hover .list__item-actions .actions-cell,
949
+ .list__item-actions--visible .actions-cell {
950
+ opacity: 1;
951
+ }
952
+
953
+ /* Integración con Accordion */
954
+ .accordion__actions .actions-cell {
955
+ /* Siempre visible en accordions */
956
+ opacity: 1;
957
+ }
958
+
959
+ /* Integración con Header */
960
+ .header .actions-cell {
961
+ /* Siempre visible en headers */
962
+ opacity: 1;
963
+ }
964
+
965
+ /* Responsive behavior */
966
+ @media (max-width: 768px) {
967
+ .actions-cell--direct {
968
+ /* En móviles, forzar modo menú más agresivamente */
969
+ max-width: 100px;
970
+ }
971
+
972
+ .actions-cell__content {
973
+ gap: 2px;
974
+ }
975
+ }
976
+
977
+ /* Estados de botones dentro de ActionsCell */
978
+ .actions-cell .button {
979
+ flex-shrink: 0;
980
+ }
981
+
982
+ .actions-cell .button--small {
983
+ min-width: auto;
984
+ padding: 4px 8px;
985
+ }
986
+
987
+ .actions-cell .button--icon-only {
988
+ min-width: 32px;
989
+ width: 32px;
990
+ height: 32px;
991
+ padding: 4px;
992
+ }
993
+
994
+ /* Animaciones suaves */
995
+ .actions-cell {
996
+ transition: all 0.2s ease;
997
+ }
998
+
999
+ .actions-cell__content {
1000
+ transition: transform 0.2s ease;
1001
+ }
1002
+
1003
+ /* Estados de hover para mejor UX */
1004
+ .actions-cell:hover .actions-cell__content {
1005
+ transform: translateX(-2px);
1006
+ }
1007
+
1008
+ /* Alineación del menú */
1009
+ .actions-cell--menu .menu-icon menu.left {
1010
+ right: auto;
1011
+ left: 0;
1012
+ }
1013
+
1014
+ .actions-cell--menu .menu-icon menu.right {
1015
+ left: auto;
1016
+ right: 0;
1017
+ }
1018
+
1019
+ .actions-cell--menu .menu-icon menu.center {
1020
+ left: 50%;
1021
+ transform: translateX(-50%);
1022
+ }
1023
+
818
1024
  .btn {
819
1025
  position: relative;
820
1026
  padding: .2rem .5rem;
@@ -3561,96 +3767,6 @@ textarea:read-only ~ label,
3561
3767
  }
3562
3768
  }
3563
3769
 
3564
- .menu-icon {
3565
- position: relative;
3566
- }
3567
-
3568
- .menu-icon > .overlay {
3569
- position: fixed;
3570
- top: 0px;
3571
- left: 0px;
3572
- width: 100vw;
3573
- height: 100vh;
3574
- z-index: 5;
3575
- background-color: transparent;
3576
- }
3577
-
3578
- .menu-icon > menu {
3579
- z-index: 6;
3580
- position: absolute;
3581
- top: 3rem;
3582
- left: 0px;
3583
- margin: 0;
3584
- border: solid 1px var(--divider-color);
3585
- background-color: var(--paper-color);
3586
- padding: 0;
3587
- min-width: 7rem;
3588
- max-width: 14rem;
3589
- max-height: 50vh;
3590
- overflow: auto;
3591
- box-shadow: var(--shadow1);
3592
- }
3593
-
3594
- .menu-icon > menu.alignRight {
3595
- left: unset;
3596
- right: 0px;
3597
- }
3598
-
3599
- .menu-icon > menu ul {
3600
- list-style: none;
3601
- margin: 0;
3602
- padding: 0.5rem 0;
3603
- cursor: pointer;
3604
- }
3605
-
3606
- .menu-icon > menu li {
3607
- min-height: 3rem;
3608
- padding: 0 0.5rem;
3609
- display: flex;
3610
- align-items: center;
3611
- }
3612
-
3613
- .menu-icon > menu li:hover {
3614
- background-color: var(--primary-color-lighter);
3615
- }
3616
-
3617
- .menu-item {
3618
- flex: 1;
3619
- display: flex;
3620
- align-items: center;
3621
- cursor: pointer;
3622
- }
3623
-
3624
- .menu-item > .icon {
3625
- color: var(--text-color-light);
3626
- cursor: pointer;
3627
- }
3628
-
3629
- .menu-item > label {
3630
- flex: 1;
3631
- white-space: nowrap;
3632
- padding: 0 0.5rem 0 0;
3633
- color: var(--text-color);
3634
- font-size: 0.9rem;
3635
- cursor: pointer;
3636
- }
3637
-
3638
- .menu-item.disabled > label,
3639
- .menu-item.disabled > .icon {
3640
- color: var(--text-color-lighter);
3641
- cursor: initial;
3642
- }
3643
-
3644
- .menu-item > .meta {
3645
- color: var(--text-color-lighter);
3646
- }
3647
-
3648
- .menu-separator {
3649
- min-height: 0px !important;
3650
- height: 1px;
3651
- border-top: solid 1px var(--divider-color);
3652
- }
3653
-
3654
3770
  /* Original Property styles (preserved for compatibility) */
3655
3771
  .property {
3656
3772
  flex:1;
@@ -4731,6 +4847,7 @@ textarea:read-only ~ label,
4731
4847
 
4732
4848
  .datatable8 table {
4733
4849
  width: 100%;
4850
+ table-layout: auto;
4734
4851
  }
4735
4852
 
4736
4853
  .datatable8 thead {
@@ -4785,7 +4902,26 @@ textarea:read-only ~ label,
4785
4902
  white-space: nowrap;
4786
4903
  max-width: 10rem;
4787
4904
  color: var(--text-color-light);
4788
- }
4905
+ }
4906
+
4907
+ /* Columna de acciones - ajuste automático al contenido */
4908
+ .datatable8 tbody td.actions {
4909
+ max-width: none !important;
4910
+ width: auto;
4911
+ min-width: auto;
4912
+ white-space: nowrap;
4913
+ padding: 0 0.25rem;
4914
+ text-align: right;
4915
+ overflow: visible;
4916
+ text-overflow: unset;
4917
+ }
4918
+
4919
+ /* Header de columna de acciones */
4920
+ .datatable8 thead th.actions {
4921
+ width: auto;
4922
+ min-width: auto;
4923
+ padding: 0 0.25rem;
4924
+ }
4789
4925
 
4790
4926
  .datatable8 tbody td.index {
4791
4927
  width: 3rem;
@@ -4803,6 +4939,17 @@ textarea:read-only ~ label,
4803
4939
  border-color: var(--text-color-lighter) !important;
4804
4940
  }
4805
4941
 
4942
+ .datatable8 tbody td.actions>div {
4943
+ display: flex;
4944
+ flex-direction: row;
4945
+ align-items: center;
4946
+ justify-content: flex-end;
4947
+ gap: 0.25rem;
4948
+ overflow: visible;
4949
+ min-width: -moz-max-content;
4950
+ min-width: max-content;
4951
+ }
4952
+
4806
4953
  .datatable8 .string-viewer img {
4807
4954
  height: 5rem;
4808
4955
  }
@@ -4811,6 +4958,22 @@ textarea:read-only ~ label,
4811
4958
  resize: horizontal;
4812
4959
  overflow: hidden;
4813
4960
  }
4961
+
4962
+ /* Columna de info - ancho mínimo para el icono de expansión */
4963
+ .datatable8 thead th[style*="width: 3rem"] {
4964
+ width: 3rem !important;
4965
+ min-width: 3rem;
4966
+ max-width: 3rem;
4967
+ padding: 0 0.5rem;
4968
+ }
4969
+
4970
+ .datatable8 tbody td:last-child {
4971
+ width: 3rem;
4972
+ min-width: 3rem;
4973
+ max-width: 3rem;
4974
+ padding: 0 0.5rem;
4975
+ text-align: center;
4976
+ }
4814
4977
  /* DataTable2 - Reimplemented with minimal, elegant styles */
4815
4978
 
4816
4979
  /* Base table styles */
@@ -4832,6 +4995,8 @@ textarea:read-only ~ label,
4832
4995
  width: 100%;
4833
4996
  border-collapse: collapse;
4834
4997
  table-layout: auto;
4998
+ overflow: visible !important;
4999
+
4835
5000
  }
4836
5001
 
4837
5002
  /* Header styles */
@@ -6192,13 +6357,48 @@ body.datatable2-resizing {
6192
6357
  }
6193
6358
 
6194
6359
  /* Special cell types */
6195
- .datatable2__select-cell,
6196
- .datatable2__actions-cell {
6197
- width: 48px;
6360
+ .datatable2__select-cell {
6361
+ width: auto;
6362
+ min-width: 48px;
6198
6363
  text-align: center;
6199
6364
  padding: 8px;
6200
6365
  }
6201
6366
 
6367
+ .datatable2__actions-cell {
6368
+ width: 1%;
6369
+ white-space: nowrap;
6370
+ text-align: right;
6371
+ padding: 8px;
6372
+ vertical-align: middle;
6373
+ }
6374
+
6375
+ .datatable2__actions-header {
6376
+ width: 1%;
6377
+ white-space: nowrap;
6378
+ text-align: right;
6379
+ padding: 8px;
6380
+ }
6381
+
6382
+ /* Actions container and items */
6383
+ .datatable2__actions-container {
6384
+ display: flex;
6385
+ align-items: center;
6386
+ justify-content: flex-end;
6387
+ gap: 4px;
6388
+ flex-wrap: nowrap;
6389
+ }
6390
+
6391
+ .datatable2__action-item {
6392
+ display: inline-flex;
6393
+ align-items: center;
6394
+ justify-content: center;
6395
+ flex-shrink: 0;
6396
+ }
6397
+
6398
+ .datatable2__expand-icon {
6399
+ margin-left: 4px;
6400
+ }
6401
+
6202
6402
  .datatable2__row-number {
6203
6403
  width: 60px;
6204
6404
  text-align: center;