@shwfed/config 2.12.4 → 2.12.6

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 (250) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +5 -0
  3. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue +9 -2
  4. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +8 -2
  5. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +3 -3
  6. package/dist/runtime/components/actions/components/group.vue +3 -1
  7. package/dist/runtime/components/actions/schema.d.ts +16 -4
  8. package/dist/runtime/components/actions/schema.js +5 -5
  9. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
  10. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
  11. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
  12. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
  13. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
  14. package/dist/runtime/components/config/footer.d.vue.ts +4 -0
  15. package/dist/runtime/components/config/footer.vue +25 -12
  16. package/dist/runtime/components/config/footer.vue.d.ts +4 -0
  17. package/dist/runtime/components/config/history-picker.d.vue.ts +15 -0
  18. package/dist/runtime/components/config/history-picker.vue +155 -0
  19. package/dist/runtime/components/config/history-picker.vue.d.ts +15 -0
  20. package/dist/runtime/components/config/index.d.vue.ts +4 -0
  21. package/dist/runtime/components/config/index.vue +31 -4
  22. package/dist/runtime/components/config/index.vue.d.ts +4 -0
  23. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +5 -3
  24. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +8 -2
  25. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +2 -2
  26. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +5 -3
  27. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +8 -2
  28. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +2 -2
  29. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.vue +4 -3
  30. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +8 -2
  31. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.js +1 -1
  32. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +5 -3
  33. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +8 -2
  34. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +2 -2
  35. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +6 -6
  36. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +6 -6
  37. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +5 -3
  38. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +8 -2
  39. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +2 -2
  40. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +2 -2
  41. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +2 -2
  42. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +5 -3
  43. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +8 -2
  44. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +2 -2
  45. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +8 -8
  46. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +8 -8
  47. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +5 -3
  48. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +8 -2
  49. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +2 -2
  50. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +2 -2
  51. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +2 -2
  52. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue +5 -3
  53. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +8 -2
  54. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +2 -2
  55. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +4 -4
  56. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +4 -4
  57. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue +5 -3
  58. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +8 -2
  59. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +2 -2
  60. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +2 -2
  61. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +2 -2
  62. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +5 -3
  63. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +8 -2
  64. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +2 -2
  65. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +2 -2
  66. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +2 -2
  67. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue +5 -3
  68. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +8 -2
  69. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +2 -2
  70. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue +5 -3
  71. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +8 -2
  72. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +2 -2
  73. package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.vue +4 -3
  74. package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +8 -2
  75. package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.js +1 -1
  76. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue +5 -3
  77. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +8 -2
  78. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.js +1 -1
  79. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue +4 -3
  80. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +8 -2
  81. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +1 -1
  82. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +2 -2
  83. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +2 -2
  84. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue +5 -3
  85. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +9 -3
  86. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +2 -2
  87. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/runtime.vue +4 -3
  88. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +8 -2
  89. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.js +1 -1
  90. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.vue +4 -3
  91. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +8 -2
  92. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.js +1 -1
  93. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/runtime.vue +5 -3
  94. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +8 -2
  95. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js +2 -1
  96. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
  97. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
  98. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue +4 -3
  99. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +8 -2
  100. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.js +1 -1
  101. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/runtime.vue +5 -3
  102. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +8 -2
  103. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.js +2 -2
  104. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +6 -6
  105. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +6 -6
  106. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/runtime.vue +5 -3
  107. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +8 -2
  108. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.js +2 -2
  109. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/runtime.vue +4 -3
  110. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +8 -2
  111. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.js +1 -1
  112. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
  113. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
  114. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/runtime.vue +4 -3
  115. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +8 -2
  116. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.js +1 -1
  117. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
  118. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
  119. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/runtime.vue +4 -3
  120. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +8 -2
  121. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.js +1 -1
  122. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue +4 -3
  123. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +8 -2
  124. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.js +1 -1
  125. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue +4 -3
  126. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +8 -2
  127. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.js +1 -1
  128. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
  129. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
  130. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue +4 -3
  131. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +8 -2
  132. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.js +1 -1
  133. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
  134. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
  135. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue +4 -3
  136. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +8 -2
  137. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.js +1 -1
  138. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
  139. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
  140. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +4 -3
  141. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +8 -2
  142. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js +1 -1
  143. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +18 -18
  144. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +18 -18
  145. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +4 -3
  146. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +8 -2
  147. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js +1 -1
  148. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/runtime.vue +5 -3
  149. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +8 -2
  150. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.js +1 -1
  151. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/runtime.vue +5 -3
  152. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +8 -2
  153. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.js +1 -1
  154. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/runtime.vue +4 -3
  155. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +8 -2
  156. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.js +1 -1
  157. package/dist/runtime/components/sidebar/index.d.vue.ts +22 -3
  158. package/dist/runtime/components/sidebar/index.vue +66 -5
  159. package/dist/runtime/components/sidebar/index.vue.d.ts +22 -3
  160. package/dist/runtime/components/sidebar/node.d.vue.ts +1 -1
  161. package/dist/runtime/components/sidebar/node.vue +33 -13
  162. package/dist/runtime/components/sidebar/node.vue.d.ts +1 -1
  163. package/dist/runtime/components/sidebar/tree.vue +113 -83
  164. package/dist/runtime/components/sidebar/types.d.ts +8 -0
  165. package/dist/runtime/components/sidebar/types.js +1 -0
  166. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
  167. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
  168. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  169. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
  170. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
  171. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  172. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  173. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  174. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  175. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  176. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  177. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  178. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  179. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  180. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  181. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  182. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  183. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  184. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  185. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  186. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  187. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  188. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  189. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  190. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  191. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue +224 -133
  192. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  193. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  194. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue +224 -133
  195. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  196. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  197. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  198. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  199. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  200. package/dist/runtime/components/table/customization.d.vue.ts +15 -0
  201. package/dist/runtime/components/table/customization.vue +633 -0
  202. package/dist/runtime/components/table/customization.vue.d.ts +15 -0
  203. package/dist/runtime/components/table/index.vue +69 -6
  204. package/dist/runtime/components/table/schema.d.ts +68 -68
  205. package/dist/runtime/components/table/utils/customization.d.ts +158 -0
  206. package/dist/runtime/components/table/utils/customization.js +315 -0
  207. package/dist/runtime/components/table/utils/row-reorder.d.ts +3 -2
  208. package/dist/runtime/components/table/utils/row-reorder.js +1 -12
  209. package/dist/runtime/components/tabs/index.d.vue.ts +9 -0
  210. package/dist/runtime/components/tabs/index.vue +92 -0
  211. package/dist/runtime/components/tabs/index.vue.d.ts +9 -0
  212. package/dist/runtime/components/tabs/tab.d.vue.ts +22 -0
  213. package/dist/runtime/components/tabs/tab.vue +85 -0
  214. package/dist/runtime/components/tabs/tab.vue.d.ts +22 -0
  215. package/dist/runtime/components/tabs/types.d.ts +19 -0
  216. package/dist/runtime/components/tabs/types.js +0 -0
  217. package/dist/runtime/components/tabs/use-reorder.d.ts +10 -0
  218. package/dist/runtime/components/tabs/use-reorder.js +90 -0
  219. package/dist/runtime/components/tabs/use-tabs.d.ts +46 -0
  220. package/dist/runtime/components/tabs/use-tabs.js +101 -0
  221. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  222. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  223. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  224. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  225. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  226. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  227. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  228. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  229. package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +1 -1
  230. package/dist/runtime/components/ui/sidebar/index.js +2 -2
  231. package/dist/runtime/share/reorder.d.ts +2 -0
  232. package/dist/runtime/share/reorder.js +12 -0
  233. package/dist/runtime/utils/nav-registry.d.ts +19 -0
  234. package/dist/runtime/utils/nav-registry.js +14 -0
  235. package/dist/runtime/utils/page-title-registry.d.ts +3 -0
  236. package/dist/runtime/utils/page-title-registry.js +11 -0
  237. package/dist/runtime/vendor/cel-js/CLAUDE.md +6 -5
  238. package/dist/runtime/vendor/cel-js/PROMPT.md +97 -19
  239. package/dist/runtime/vendor/cel-js/lib/decimal.d.ts +4 -0
  240. package/dist/runtime/vendor/cel-js/lib/decimal.js +35 -0
  241. package/dist/runtime/vendor/cel-js/lib/evaluator.js +2 -0
  242. package/dist/runtime/vendor/cel-js/lib/functions.js +107 -134
  243. package/dist/runtime/vendor/cel-js/lib/macros.js +125 -16
  244. package/dist/runtime/vendor/cel-js/lib/math-builtins.d.ts +2 -0
  245. package/dist/runtime/vendor/cel-js/lib/math-builtins.js +39 -0
  246. package/dist/runtime/vendor/cel-js/lib/optional.d.ts +4 -0
  247. package/dist/runtime/vendor/cel-js/lib/optional.js +73 -21
  248. package/dist/runtime/vendor/cel-js/lib/parser.js +2 -6
  249. package/dist/runtime/vendor/cel-js/lib/registry.js +2 -2
  250. package/package.json +1 -1
@@ -29,40 +29,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
29
29
  readonly message: string;
30
30
  }[]] | undefined;
31
31
  }[];
32
- readonly query?: {
33
- readonly style?: string | undefined;
34
- readonly id?: string | undefined;
35
- readonly initial?: {
36
- readonly data: string;
37
- readonly request?: string | undefined;
38
- } | undefined;
39
- readonly displayName?: string | undefined;
40
- readonly kind: "shwfed.component.form";
41
- readonly fields: readonly any[];
42
- readonly layouts: readonly {
43
- readonly name: string;
44
- readonly layout: {
45
- readonly style?: string | undefined;
46
- readonly columns: number;
47
- readonly gap?: number | undefined;
48
- readonly rows?: number | undefined;
49
- readonly placements: {
50
- readonly [x: string]: {
51
- readonly area: readonly [readonly [number, number], readonly [number, number]];
52
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
53
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
54
- };
55
- };
56
- };
57
- readonly media?: string | undefined;
58
- }[];
59
- readonly readonly?: string | undefined;
60
- } | undefined;
61
- readonly dataSource?: {
62
- readonly data: string;
63
- readonly total?: string | undefined;
64
- readonly request?: string | undefined;
65
- } | undefined;
66
32
  readonly actions?: {
67
33
  readonly size: "default" | "sm" | "xs";
68
34
  readonly style?: string | undefined;
@@ -130,6 +96,40 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
130
96
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
131
97
  }[];
132
98
  } | undefined;
99
+ readonly query?: {
100
+ readonly style?: string | undefined;
101
+ readonly id?: string | undefined;
102
+ readonly initial?: {
103
+ readonly data: string;
104
+ readonly request?: string | undefined;
105
+ } | undefined;
106
+ readonly displayName?: string | undefined;
107
+ readonly kind: "shwfed.component.form";
108
+ readonly fields: readonly any[];
109
+ readonly layouts: readonly {
110
+ readonly name: string;
111
+ readonly layout: {
112
+ readonly style?: string | undefined;
113
+ readonly columns: number;
114
+ readonly gap?: number | undefined;
115
+ readonly rows?: number | undefined;
116
+ readonly placements: {
117
+ readonly [x: string]: {
118
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
119
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
120
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
121
+ };
122
+ };
123
+ };
124
+ readonly media?: string | undefined;
125
+ }[];
126
+ readonly readonly?: string | undefined;
127
+ } | undefined;
128
+ readonly dataSource?: {
129
+ readonly data: string;
130
+ readonly total?: string | undefined;
131
+ readonly request?: string | undefined;
132
+ } | undefined;
133
133
  readonly bottomActions?: {
134
134
  readonly size: "default" | "sm" | "xs";
135
135
  readonly style?: string | undefined;
@@ -277,40 +277,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
277
277
  readonly message: string;
278
278
  }[]] | undefined;
279
279
  }[];
280
- readonly query?: {
281
- readonly style?: string | undefined;
282
- readonly id?: string | undefined;
283
- readonly initial?: {
284
- readonly data: string;
285
- readonly request?: string | undefined;
286
- } | undefined;
287
- readonly displayName?: string | undefined;
288
- readonly kind: "shwfed.component.form";
289
- readonly fields: readonly any[];
290
- readonly layouts: readonly {
291
- readonly name: string;
292
- readonly layout: {
293
- readonly style?: string | undefined;
294
- readonly columns: number;
295
- readonly gap?: number | undefined;
296
- readonly rows?: number | undefined;
297
- readonly placements: {
298
- readonly [x: string]: {
299
- readonly area: readonly [readonly [number, number], readonly [number, number]];
300
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
301
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
302
- };
303
- };
304
- };
305
- readonly media?: string | undefined;
306
- }[];
307
- readonly readonly?: string | undefined;
308
- } | undefined;
309
- readonly dataSource?: {
310
- readonly data: string;
311
- readonly total?: string | undefined;
312
- readonly request?: string | undefined;
313
- } | undefined;
314
280
  readonly actions?: {
315
281
  readonly size: "default" | "sm" | "xs";
316
282
  readonly style?: string | undefined;
@@ -378,6 +344,40 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
378
344
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
379
345
  }[];
380
346
  } | undefined;
347
+ readonly query?: {
348
+ readonly style?: string | undefined;
349
+ readonly id?: string | undefined;
350
+ readonly initial?: {
351
+ readonly data: string;
352
+ readonly request?: string | undefined;
353
+ } | undefined;
354
+ readonly displayName?: string | undefined;
355
+ readonly kind: "shwfed.component.form";
356
+ readonly fields: readonly any[];
357
+ readonly layouts: readonly {
358
+ readonly name: string;
359
+ readonly layout: {
360
+ readonly style?: string | undefined;
361
+ readonly columns: number;
362
+ readonly gap?: number | undefined;
363
+ readonly rows?: number | undefined;
364
+ readonly placements: {
365
+ readonly [x: string]: {
366
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
367
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
368
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
369
+ };
370
+ };
371
+ };
372
+ readonly media?: string | undefined;
373
+ }[];
374
+ readonly readonly?: string | undefined;
375
+ } | undefined;
376
+ readonly dataSource?: {
377
+ readonly data: string;
378
+ readonly total?: string | undefined;
379
+ readonly request?: string | undefined;
380
+ } | undefined;
381
381
  readonly bottomActions?: {
382
382
  readonly size: "default" | "sm" | "xs";
383
383
  readonly style?: string | undefined;
@@ -29,40 +29,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
29
29
  readonly message: string;
30
30
  }[]] | undefined;
31
31
  }[];
32
- readonly query?: {
33
- readonly style?: string | undefined;
34
- readonly id?: string | undefined;
35
- readonly initial?: {
36
- readonly data: string;
37
- readonly request?: string | undefined;
38
- } | undefined;
39
- readonly displayName?: string | undefined;
40
- readonly kind: "shwfed.component.form";
41
- readonly fields: readonly any[];
42
- readonly layouts: readonly {
43
- readonly name: string;
44
- readonly layout: {
45
- readonly style?: string | undefined;
46
- readonly columns: number;
47
- readonly gap?: number | undefined;
48
- readonly rows?: number | undefined;
49
- readonly placements: {
50
- readonly [x: string]: {
51
- readonly area: readonly [readonly [number, number], readonly [number, number]];
52
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
53
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
54
- };
55
- };
56
- };
57
- readonly media?: string | undefined;
58
- }[];
59
- readonly readonly?: string | undefined;
60
- } | undefined;
61
- readonly dataSource?: {
62
- readonly data: string;
63
- readonly total?: string | undefined;
64
- readonly request?: string | undefined;
65
- } | undefined;
66
32
  readonly actions?: {
67
33
  readonly size: "default" | "sm" | "xs";
68
34
  readonly style?: string | undefined;
@@ -130,6 +96,40 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
130
96
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
131
97
  }[];
132
98
  } | undefined;
99
+ readonly query?: {
100
+ readonly style?: string | undefined;
101
+ readonly id?: string | undefined;
102
+ readonly initial?: {
103
+ readonly data: string;
104
+ readonly request?: string | undefined;
105
+ } | undefined;
106
+ readonly displayName?: string | undefined;
107
+ readonly kind: "shwfed.component.form";
108
+ readonly fields: readonly any[];
109
+ readonly layouts: readonly {
110
+ readonly name: string;
111
+ readonly layout: {
112
+ readonly style?: string | undefined;
113
+ readonly columns: number;
114
+ readonly gap?: number | undefined;
115
+ readonly rows?: number | undefined;
116
+ readonly placements: {
117
+ readonly [x: string]: {
118
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
119
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
120
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
121
+ };
122
+ };
123
+ };
124
+ readonly media?: string | undefined;
125
+ }[];
126
+ readonly readonly?: string | undefined;
127
+ } | undefined;
128
+ readonly dataSource?: {
129
+ readonly data: string;
130
+ readonly total?: string | undefined;
131
+ readonly request?: string | undefined;
132
+ } | undefined;
133
133
  readonly bottomActions?: {
134
134
  readonly size: "default" | "sm" | "xs";
135
135
  readonly style?: string | undefined;
@@ -277,40 +277,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
277
277
  readonly message: string;
278
278
  }[]] | undefined;
279
279
  }[];
280
- readonly query?: {
281
- readonly style?: string | undefined;
282
- readonly id?: string | undefined;
283
- readonly initial?: {
284
- readonly data: string;
285
- readonly request?: string | undefined;
286
- } | undefined;
287
- readonly displayName?: string | undefined;
288
- readonly kind: "shwfed.component.form";
289
- readonly fields: readonly any[];
290
- readonly layouts: readonly {
291
- readonly name: string;
292
- readonly layout: {
293
- readonly style?: string | undefined;
294
- readonly columns: number;
295
- readonly gap?: number | undefined;
296
- readonly rows?: number | undefined;
297
- readonly placements: {
298
- readonly [x: string]: {
299
- readonly area: readonly [readonly [number, number], readonly [number, number]];
300
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
301
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
302
- };
303
- };
304
- };
305
- readonly media?: string | undefined;
306
- }[];
307
- readonly readonly?: string | undefined;
308
- } | undefined;
309
- readonly dataSource?: {
310
- readonly data: string;
311
- readonly total?: string | undefined;
312
- readonly request?: string | undefined;
313
- } | undefined;
314
280
  readonly actions?: {
315
281
  readonly size: "default" | "sm" | "xs";
316
282
  readonly style?: string | undefined;
@@ -378,6 +344,40 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
378
344
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
379
345
  }[];
380
346
  } | undefined;
347
+ readonly query?: {
348
+ readonly style?: string | undefined;
349
+ readonly id?: string | undefined;
350
+ readonly initial?: {
351
+ readonly data: string;
352
+ readonly request?: string | undefined;
353
+ } | undefined;
354
+ readonly displayName?: string | undefined;
355
+ readonly kind: "shwfed.component.form";
356
+ readonly fields: readonly any[];
357
+ readonly layouts: readonly {
358
+ readonly name: string;
359
+ readonly layout: {
360
+ readonly style?: string | undefined;
361
+ readonly columns: number;
362
+ readonly gap?: number | undefined;
363
+ readonly rows?: number | undefined;
364
+ readonly placements: {
365
+ readonly [x: string]: {
366
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
367
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
368
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
369
+ };
370
+ };
371
+ };
372
+ readonly media?: string | undefined;
373
+ }[];
374
+ readonly readonly?: string | undefined;
375
+ } | undefined;
376
+ readonly dataSource?: {
377
+ readonly data: string;
378
+ readonly total?: string | undefined;
379
+ readonly request?: string | undefined;
380
+ } | undefined;
381
381
  readonly bottomActions?: {
382
382
  readonly size: "default" | "sm" | "xs";
383
383
  readonly style?: string | undefined;
@@ -47,40 +47,6 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
47
47
  readonly message: string;
48
48
  }[]] | undefined;
49
49
  }[];
50
- readonly query?: {
51
- readonly style?: string | undefined;
52
- readonly id?: string | undefined;
53
- readonly initial?: {
54
- readonly data: string;
55
- readonly request?: string | undefined;
56
- } | undefined;
57
- readonly displayName?: string | undefined;
58
- readonly kind: "shwfed.component.form";
59
- readonly fields: readonly any[];
60
- readonly layouts: readonly {
61
- readonly name: string;
62
- readonly layout: {
63
- readonly style?: string | undefined;
64
- readonly columns: number;
65
- readonly gap?: number | undefined;
66
- readonly rows?: number | undefined;
67
- readonly placements: {
68
- readonly [x: string]: {
69
- readonly area: readonly [readonly [number, number], readonly [number, number]];
70
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
71
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
72
- };
73
- };
74
- };
75
- readonly media?: string | undefined;
76
- }[];
77
- readonly readonly?: string | undefined;
78
- } | undefined;
79
- readonly dataSource?: {
80
- readonly data: string;
81
- readonly total?: string | undefined;
82
- readonly request?: string | undefined;
83
- } | undefined;
84
50
  readonly actions?: {
85
51
  readonly size: "default" | "sm" | "xs";
86
52
  readonly style?: string | undefined;
@@ -148,6 +114,40 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
148
114
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
149
115
  }[];
150
116
  } | undefined;
117
+ readonly query?: {
118
+ readonly style?: string | undefined;
119
+ readonly id?: string | undefined;
120
+ readonly initial?: {
121
+ readonly data: string;
122
+ readonly request?: string | undefined;
123
+ } | undefined;
124
+ readonly displayName?: string | undefined;
125
+ readonly kind: "shwfed.component.form";
126
+ readonly fields: readonly any[];
127
+ readonly layouts: readonly {
128
+ readonly name: string;
129
+ readonly layout: {
130
+ readonly style?: string | undefined;
131
+ readonly columns: number;
132
+ readonly gap?: number | undefined;
133
+ readonly rows?: number | undefined;
134
+ readonly placements: {
135
+ readonly [x: string]: {
136
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
137
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
138
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
139
+ };
140
+ };
141
+ };
142
+ readonly media?: string | undefined;
143
+ }[];
144
+ readonly readonly?: string | undefined;
145
+ } | undefined;
146
+ readonly dataSource?: {
147
+ readonly data: string;
148
+ readonly total?: string | undefined;
149
+ readonly request?: string | undefined;
150
+ } | undefined;
151
151
  readonly bottomActions?: {
152
152
  readonly size: "default" | "sm" | "xs";
153
153
  readonly style?: string | undefined;
@@ -1,11 +1,15 @@
1
+ import { type HistoryVersion } from './history-picker.vue.js';
1
2
  import type { ConfigEditorState } from './use-editor.js';
2
3
  type __VLS_Props = {
3
4
  state: ConfigEditorState;
5
+ versions?: HistoryVersion[];
4
6
  };
5
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
8
  close: () => any;
9
+ "select-version": (version: string) => any;
7
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
11
  onClose?: (() => any) | undefined;
12
+ "onSelect-version"?: ((version: string) => any) | undefined;
9
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
14
  declare const _default: typeof __VLS_export;
11
15
  export default _default;
@@ -1,11 +1,14 @@
1
1
  <script setup>
2
2
  import { Icon } from "@iconify/vue";
3
3
  import { Button } from "../ui/button";
4
+ import { ButtonGroup } from "../ui/button-group";
5
+ import HistoryPicker, {} from "./history-picker.vue";
4
6
  defineOptions({ name: "ShwfedConfigEditorFooter" });
5
7
  const props = defineProps({
6
- state: { type: Object, required: true }
8
+ state: { type: Object, required: true },
9
+ versions: { type: Array, required: false }
7
10
  });
8
- const emit = defineEmits(["close"]);
11
+ const emit = defineEmits(["close", "select-version"]);
9
12
  function onDismiss() {
10
13
  props.state.dismiss();
11
14
  emit("close");
@@ -50,15 +53,25 @@ function onConfirm() {
50
53
  </Button>
51
54
  <!-- Edits land in the shared draft live, so confirming from a drilled
52
55
  frame needs no flushing — validate the whole draft, close on success,
53
- stay in place on failure (the error renders in this same footer). -->
54
- <Button
55
- type="button"
56
- variant="primary"
57
- size="sm"
58
- @click="onConfirm"
59
- >
60
- <Icon icon="fluent:checkmark-20-regular" />
61
- 确认
62
- </Button>
56
+ stay in place on failure (the error renders in this same footer). The
57
+ history picker joins 确认 as a segmented group (a subtle divider between
58
+ them); with no versions the group holds just 确认. -->
59
+ <ButtonGroup>
60
+ <Button
61
+ type="button"
62
+ variant="primary"
63
+ size="sm"
64
+ @click="onConfirm"
65
+ >
66
+ <Icon icon="fluent:checkmark-20-regular" />
67
+ 确认
68
+ </Button>
69
+ <HistoryPicker
70
+ v-if="props.versions?.length"
71
+ :versions="props.versions"
72
+ :dirty="props.state.isDirty.value"
73
+ @select="(v) => emit('select-version', v)"
74
+ />
75
+ </ButtonGroup>
63
76
  </div>
64
77
  </template>
@@ -1,11 +1,15 @@
1
+ import { type HistoryVersion } from './history-picker.vue.js';
1
2
  import type { ConfigEditorState } from './use-editor.js';
2
3
  type __VLS_Props = {
3
4
  state: ConfigEditorState;
5
+ versions?: HistoryVersion[];
4
6
  };
5
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
8
  close: () => any;
9
+ "select-version": (version: string) => any;
7
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
11
  onClose?: (() => any) | undefined;
12
+ "onSelect-version"?: ((version: string) => any) | undefined;
9
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
14
  declare const _default: typeof __VLS_export;
11
15
  export default _default;
@@ -0,0 +1,15 @@
1
+ export interface HistoryVersion {
2
+ version: string;
3
+ name: string;
4
+ }
5
+ type __VLS_Props = {
6
+ versions: HistoryVersion[];
7
+ dirty?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ select: (version: string) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((version: string) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,155 @@
1
+ <script setup>
2
+ import { ref } from "vue";
3
+ import { Icon } from "@iconify/vue";
4
+ import { useI18n } from "vue-i18n";
5
+ import { Button } from "../ui/button";
6
+ import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";
7
+ import {
8
+ Command,
9
+ CommandEmpty,
10
+ CommandGroup,
11
+ CommandInput,
12
+ CommandItem,
13
+ CommandList
14
+ } from "../ui/command";
15
+ import {
16
+ AlertDialog,
17
+ AlertDialogAction,
18
+ AlertDialogCancel,
19
+ AlertDialogContent,
20
+ AlertDialogDescription,
21
+ AlertDialogFooter,
22
+ AlertDialogHeader,
23
+ AlertDialogTitle
24
+ } from "../ui/alert-dialog";
25
+ defineOptions({ name: "ShwfedConfigHistoryPicker" });
26
+ const props = defineProps({
27
+ versions: { type: Array, required: true },
28
+ dirty: { type: Boolean, required: false }
29
+ });
30
+ const emit = defineEmits(["select"]);
31
+ const { t } = useI18n({
32
+ inheritLocale: true,
33
+ messages: {
34
+ zh: {
35
+ "history-label": "\u5386\u53F2\u7248\u672C",
36
+ "history-search": "\u641C\u7D22\u7248\u672C\u2026",
37
+ "history-empty": "\u65E0\u5386\u53F2\u7248\u672C",
38
+ "history-confirm-body": "\u653E\u5F03\u5F53\u524D\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u5E76\u8F7D\u5165\u8BE5\u5386\u53F2\u7248\u672C\uFF1F",
39
+ "history-cancel": "\u53D6\u6D88",
40
+ "history-confirm": "\u8F7D\u5165"
41
+ },
42
+ ja: {
43
+ "history-label": "\u5C65\u6B74\u30D0\u30FC\u30B8\u30E7\u30F3",
44
+ "history-search": "\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u691C\u7D22\u2026",
45
+ "history-empty": "\u5C65\u6B74\u30D0\u30FC\u30B8\u30E7\u30F3\u306A\u3057",
46
+ "history-confirm-body": "\u672A\u4FDD\u5B58\u306E\u5909\u66F4\u3092\u7834\u68C4\u3057\u3066\u3053\u306E\u5C65\u6B74\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u8AAD\u307F\u8FBC\u307F\u307E\u3059\u304B\uFF1F",
47
+ "history-cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
48
+ "history-confirm": "\u8AAD\u307F\u8FBC\u3080"
49
+ },
50
+ en: {
51
+ "history-label": "History",
52
+ "history-search": "Search versions\u2026",
53
+ "history-empty": "No history versions",
54
+ "history-confirm-body": "Discard current unsaved changes and load this history version?",
55
+ "history-cancel": "Cancel",
56
+ "history-confirm": "Load"
57
+ }
58
+ }
59
+ });
60
+ const open = ref(false);
61
+ const pending = ref(null);
62
+ const confirmOpen = ref(false);
63
+ function onPick(v) {
64
+ open.value = false;
65
+ if (props.dirty) {
66
+ pending.value = v.version;
67
+ confirmOpen.value = true;
68
+ return;
69
+ }
70
+ emit("select", v.version);
71
+ }
72
+ function onConfirm() {
73
+ if (pending.value !== null) emit("select", pending.value);
74
+ pending.value = null;
75
+ confirmOpen.value = false;
76
+ }
77
+ function onCancel() {
78
+ pending.value = null;
79
+ confirmOpen.value = false;
80
+ }
81
+ </script>
82
+
83
+ <template>
84
+ <Popover
85
+ v-if="props.versions.length"
86
+ v-model:open="open"
87
+ >
88
+ <PopoverTrigger as-child>
89
+ <Button
90
+ type="button"
91
+ variant="primary"
92
+ size="sm"
93
+ :aria-label="t('history-label')"
94
+ >
95
+ <Icon icon="fluent:history-20-regular" />
96
+ </Button>
97
+ </PopoverTrigger>
98
+ <PopoverContent
99
+ class="w-64 p-0"
100
+ align="end"
101
+ >
102
+ <Command>
103
+ <CommandInput :placeholder="t('history-search')" />
104
+ <CommandList>
105
+ <CommandEmpty class="py-6 text-center text-sm text-zinc-500">
106
+ {{ t("history-empty") }}
107
+ </CommandEmpty>
108
+ <CommandGroup>
109
+ <CommandItem
110
+ v-for="v in props.versions"
111
+ :key="v.version"
112
+ :value="v.name"
113
+ :keywords="v.version"
114
+ @select="onPick(v)"
115
+ >
116
+ <span class="flex-1 truncate">{{ v.name }}</span>
117
+ <span class="ml-auto text-xs tabular-nums text-zinc-400">{{ v.version }}</span>
118
+ </CommandItem>
119
+ </CommandGroup>
120
+ </CommandList>
121
+ </Command>
122
+ </PopoverContent>
123
+
124
+ <AlertDialog
125
+ :open="confirmOpen"
126
+ @update:open="(o) => {
127
+ if (!o) onCancel();
128
+ }"
129
+ >
130
+ <AlertDialogContent class="sm:px-12 sm:py-8 flex flex-col gap-12">
131
+ <AlertDialogHeader class="sr-only">
132
+ <AlertDialogTitle>{{ t("history-label") }}</AlertDialogTitle>
133
+ <AlertDialogDescription>{{ t("history-confirm-body") }}</AlertDialogDescription>
134
+ </AlertDialogHeader>
135
+ <Icon
136
+ icon="fluent:warning-20-filled"
137
+ class="text-6xl mx-auto text-yellow-500"
138
+ />
139
+ <p class="text-sm text-zinc-900">
140
+ {{ t("history-confirm-body") }}
141
+ </p>
142
+ <AlertDialogFooter>
143
+ <AlertDialogCancel @click="onCancel">
144
+ <Icon icon="fluent:dismiss-20-regular" />
145
+ {{ t("history-cancel") }}
146
+ </AlertDialogCancel>
147
+ <AlertDialogAction @click="onConfirm">
148
+ <Icon icon="fluent:checkmark-20-regular" />
149
+ {{ t("history-confirm") }}
150
+ </AlertDialogAction>
151
+ </AlertDialogFooter>
152
+ </AlertDialogContent>
153
+ </AlertDialog>
154
+ </Popover>
155
+ </template>