@uipath/apollo-react 7.26.0 → 7.28.0

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 (124) hide show
  1. package/dist/decision-table/BandColumn.d.ts +2 -2
  2. package/dist/decision-table/BandColumn.d.ts.map +1 -1
  3. package/dist/decision-table/ColumnEditorOverlay.cjs +3 -3
  4. package/dist/decision-table/ColumnEditorOverlay.d.ts +6 -5
  5. package/dist/decision-table/ColumnEditorOverlay.d.ts.map +1 -1
  6. package/dist/decision-table/ColumnEditorOverlay.js +3 -3
  7. package/dist/decision-table/ColumnPopover.cjs +52 -31
  8. package/dist/decision-table/ColumnPopover.d.ts +36 -23
  9. package/dist/decision-table/ColumnPopover.d.ts.map +1 -1
  10. package/dist/decision-table/ColumnPopover.js +52 -31
  11. package/dist/decision-table/DecisionText.cjs +33 -11
  12. package/dist/decision-table/DecisionText.d.ts +23 -24
  13. package/dist/decision-table/DecisionText.d.ts.map +1 -1
  14. package/dist/decision-table/DecisionText.js +33 -11
  15. package/dist/decision-table/DecisionTextHeader.cjs +10 -8
  16. package/dist/decision-table/DecisionTextHeader.d.ts +13 -5
  17. package/dist/decision-table/DecisionTextHeader.d.ts.map +1 -1
  18. package/dist/decision-table/DecisionTextHeader.js +10 -8
  19. package/dist/decision-table/ValueFields.cjs +9 -5
  20. package/dist/decision-table/ValueFields.d.ts +0 -2
  21. package/dist/decision-table/ValueFields.d.ts.map +1 -1
  22. package/dist/decision-table/ValueFields.js +9 -5
  23. package/dist/decision-table/ValuePopover.cjs +18 -28
  24. package/dist/decision-table/ValuePopover.d.ts +5 -4
  25. package/dist/decision-table/ValuePopover.d.ts.map +1 -1
  26. package/dist/decision-table/ValuePopover.js +18 -28
  27. package/dist/decision-table/__fixtures__/diffSentences.fixtures.d.ts +9 -8
  28. package/dist/decision-table/__fixtures__/diffSentences.fixtures.d.ts.map +1 -1
  29. package/dist/decision-table/__fixtures__/editableSentences.fixtures.d.ts +5 -4
  30. package/dist/decision-table/__fixtures__/editableSentences.fixtures.d.ts.map +1 -1
  31. package/dist/decision-table/__fixtures__/sentences.fixtures.d.ts +25 -7
  32. package/dist/decision-table/__fixtures__/sentences.fixtures.d.ts.map +1 -1
  33. package/dist/decision-table/__fixtures__/storyTableHost.d.ts +16 -14
  34. package/dist/decision-table/__fixtures__/storyTableHost.d.ts.map +1 -1
  35. package/dist/decision-table/__fixtures__/textMode.d.ts +13 -5
  36. package/dist/decision-table/__fixtures__/textMode.d.ts.map +1 -1
  37. package/dist/decision-table/bandColumns.cjs +22 -35
  38. package/dist/decision-table/bandColumns.d.ts +2 -4
  39. package/dist/decision-table/bandColumns.d.ts.map +1 -1
  40. package/dist/decision-table/bandColumns.js +21 -31
  41. package/dist/decision-table/decisionTextDiff.d.ts +13 -12
  42. package/dist/decision-table/decisionTextDiff.d.ts.map +1 -1
  43. package/dist/decision-table/decisionTextTypes.d.ts +10 -7
  44. package/dist/decision-table/decisionTextTypes.d.ts.map +1 -1
  45. package/dist/decision-table/hostValues.cjs +90 -0
  46. package/dist/decision-table/hostValues.d.ts +13 -0
  47. package/dist/decision-table/hostValues.d.ts.map +1 -0
  48. package/dist/decision-table/hostValues.js +50 -0
  49. package/dist/decision-table/index.cjs +4 -4
  50. package/dist/decision-table/index.d.ts +9 -7
  51. package/dist/decision-table/index.d.ts.map +1 -1
  52. package/dist/decision-table/index.js +1 -1
  53. package/dist/decision-table/locales/de.cjs +1 -1
  54. package/dist/decision-table/locales/de.d.ts.map +1 -1
  55. package/dist/decision-table/locales/de.js +1 -1
  56. package/dist/decision-table/locales/en.cjs +1 -1
  57. package/dist/decision-table/locales/en.d.ts.map +1 -1
  58. package/dist/decision-table/locales/en.js +1 -1
  59. package/dist/decision-table/locales/es-MX.cjs +1 -1
  60. package/dist/decision-table/locales/es-MX.d.ts.map +1 -1
  61. package/dist/decision-table/locales/es-MX.js +1 -1
  62. package/dist/decision-table/locales/es.cjs +1 -1
  63. package/dist/decision-table/locales/es.d.ts.map +1 -1
  64. package/dist/decision-table/locales/es.js +1 -1
  65. package/dist/decision-table/locales/fr.cjs +1 -1
  66. package/dist/decision-table/locales/fr.d.ts.map +1 -1
  67. package/dist/decision-table/locales/fr.js +1 -1
  68. package/dist/decision-table/locales/ja.cjs +1 -1
  69. package/dist/decision-table/locales/ja.d.ts.map +1 -1
  70. package/dist/decision-table/locales/ja.js +1 -1
  71. package/dist/decision-table/locales/ko.cjs +1 -1
  72. package/dist/decision-table/locales/ko.d.ts.map +1 -1
  73. package/dist/decision-table/locales/ko.js +1 -1
  74. package/dist/decision-table/locales/pt-BR.cjs +1 -1
  75. package/dist/decision-table/locales/pt-BR.d.ts.map +1 -1
  76. package/dist/decision-table/locales/pt-BR.js +1 -1
  77. package/dist/decision-table/locales/pt.cjs +1 -1
  78. package/dist/decision-table/locales/pt.d.ts.map +1 -1
  79. package/dist/decision-table/locales/pt.js +1 -1
  80. package/dist/decision-table/locales/ro.cjs +1 -1
  81. package/dist/decision-table/locales/ro.d.ts.map +1 -1
  82. package/dist/decision-table/locales/ro.js +1 -1
  83. package/dist/decision-table/locales/ru.cjs +1 -1
  84. package/dist/decision-table/locales/ru.d.ts.map +1 -1
  85. package/dist/decision-table/locales/ru.js +1 -1
  86. package/dist/decision-table/locales/tr.cjs +1 -1
  87. package/dist/decision-table/locales/tr.d.ts.map +1 -1
  88. package/dist/decision-table/locales/tr.js +1 -1
  89. package/dist/decision-table/locales/zh-CN.cjs +1 -1
  90. package/dist/decision-table/locales/zh-CN.d.ts.map +1 -1
  91. package/dist/decision-table/locales/zh-CN.js +1 -1
  92. package/dist/decision-table/locales/zh-TW.cjs +1 -1
  93. package/dist/decision-table/locales/zh-TW.d.ts.map +1 -1
  94. package/dist/decision-table/locales/zh-TW.js +1 -1
  95. package/dist/decision-table/sentenceTypes.d.ts +12 -8
  96. package/dist/decision-table/sentenceTypes.d.ts.map +1 -1
  97. package/dist/decision-table/useColumnEditing.cjs +7 -5
  98. package/dist/decision-table/useColumnEditing.d.ts +6 -6
  99. package/dist/decision-table/useColumnEditing.d.ts.map +1 -1
  100. package/dist/decision-table/useColumnEditing.js +7 -5
  101. package/dist/decision-table/useDecisionTextStrings.cjs +1 -5
  102. package/dist/decision-table/useDecisionTextStrings.d.ts.map +1 -1
  103. package/dist/decision-table/useDecisionTextStrings.js +1 -5
  104. package/dist/decision-table/useEditState.cjs +17 -1
  105. package/dist/decision-table/useEditState.d.ts +4 -2
  106. package/dist/decision-table/useEditState.d.ts.map +1 -1
  107. package/dist/decision-table/useEditState.js +17 -1
  108. package/dist/decision-table/useHostValueEdit.cjs +91 -0
  109. package/dist/decision-table/useHostValueEdit.d.ts +5 -0
  110. package/dist/decision-table/useHostValueEdit.d.ts.map +1 -0
  111. package/dist/decision-table/useHostValueEdit.js +57 -0
  112. package/dist/decision-table/usePendingCondition.cjs +6 -5
  113. package/dist/decision-table/usePendingCondition.d.ts.map +1 -1
  114. package/dist/decision-table/usePendingCondition.js +7 -6
  115. package/dist/decision-table/useShapeDraft.cjs +93 -65
  116. package/dist/decision-table/useShapeDraft.d.ts +17 -14
  117. package/dist/decision-table/useShapeDraft.d.ts.map +1 -1
  118. package/dist/decision-table/useShapeDraft.js +93 -62
  119. package/dist/decision-table/useValueEditing.cjs +3 -7
  120. package/dist/decision-table/useValueEditing.d.ts.map +1 -1
  121. package/dist/decision-table/useValueEditing.js +3 -7
  122. package/dist/decision-table/valueTypes.d.ts +57 -19
  123. package/dist/decision-table/valueTypes.d.ts.map +1 -1
  124. package/package.json +3 -3
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  messages: ()=>messages
28
28
  });
29
- const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.ends_out_of_order\":[\"From must not be past To\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
29
+ const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/tr.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA8oJ,QAAQ,CAAC"}
1
+ {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/tr.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAAonJ,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.ends_out_of_order\":[\"From must not be past To\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
1
+ const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
2
2
  export { messages };
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  messages: ()=>messages
28
28
  });
29
- const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.ends_out_of_order\":[\"From must not be past To\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
29
+ const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/zh-CN.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA8oJ,QAAQ,CAAC"}
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/zh-CN.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAAonJ,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.ends_out_of_order\":[\"From must not be past To\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
1
+ const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
2
2
  export { messages };
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  messages: ()=>messages
28
28
  });
29
- const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.ends_out_of_order\":[\"From must not be past To\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
29
+ const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/zh-TW.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA8oJ,QAAQ,CAAC"}
1
+ {"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/zh-TW.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAAonJ,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.ends_out_of_order\":[\"From must not be past To\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
1
+ const messages = JSON.parse("{\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
2
2
  export { messages };
@@ -1,4 +1,5 @@
1
1
  import type React from 'react';
2
+ import type { HitPolicyPick } from './hitPolicyMenu';
2
3
  export type SentenceNameToken = {
3
4
  kind: 'input';
4
5
  columnId: string;
@@ -27,21 +28,24 @@ export interface SentenceRule {
27
28
  lead: readonly SentencePart[];
28
29
  lines: readonly SentenceLine[];
29
30
  }
30
- export type SentenceValueType = 'text' | 'number' | 'boolean' | 'date' | 'time' | 'dateTime' | 'dayTimeDuration' | 'yearMonthDuration' | 'list' | 'any';
31
- export interface SentenceBandColumn {
31
+ export interface SentenceBandColumn<Type> {
32
32
  id: string;
33
33
  name: string;
34
- type?: SentenceValueType;
35
- icon?: React.ReactNode;
34
+ type: Type;
35
+ }
36
+ export interface BandColumnView extends Omit<SentenceBandColumn<unknown>, 'type'> {
37
+ icon: React.ReactNode;
36
38
  }
37
39
  export interface SentenceBand {
38
40
  id: string;
39
41
  label: string;
40
- columns: readonly SentenceBandColumn[];
42
+ columns: readonly BandColumnView[];
41
43
  }
42
- export interface SentenceHeader {
43
- label: string;
44
- hint: string;
44
+ export interface DecisionTextTable<Policy, Total, Type> {
45
+ hitPolicy: HitPolicyPick<Policy, Total>;
46
+ inputs: readonly SentenceBandColumn<Type>[];
47
+ outputs: readonly SentenceBandColumn<Type>[];
48
+ rules: readonly SentenceRule[];
45
49
  }
46
50
  export interface SentenceCellId {
47
51
  rowId: string;
@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AAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAAC,CAAC"}
@@ -34,7 +34,8 @@ const useColumnEditing = ({ column, bands, container })=>{
34
34
  const [openId, setOpenId] = (0, external_react_namespaceObject.useState)(null);
35
35
  const refocusRef = (0, external_react_namespaceObject.useRef)(null);
36
36
  const open = column && null !== openId ? bands.flatMap((band)=>band.columns).find((candidate)=>candidate.id === openId) : void 0;
37
- if (null !== openId && !open) setOpenId(null);
37
+ const field = column && open ? column.field(open.id) : void 0;
38
+ if (null !== openId && !field) setOpenId(null);
38
39
  (0, external_react_namespaceObject.useLayoutEffect)(()=>{
39
40
  const columnId = refocusRef.current;
40
41
  if (null !== openId || null === columnId) return;
@@ -48,13 +49,14 @@ const useColumnEditing = ({ column, bands, container })=>{
48
49
  refocusRef.current = refocus ? columnId : null;
49
50
  setOpenId(null);
50
51
  };
51
- const editorOf = (edit, shown)=>{
52
+ const editorOf = (edit, shown, shownField)=>{
52
53
  const { onMoreProperties } = edit;
53
54
  return {
54
55
  column: shown,
56
+ field: shownField,
55
57
  anchor: (section)=>pillOf(section, shown.id),
56
58
  onApply: (change)=>{
57
- if (Object.keys(change).length > 0) edit.onCommit(shown.id, change);
59
+ if (Object.keys(change).some((key)=>'kind' !== key)) edit.onCommit(shown.id, change);
58
60
  close(shown.id, true);
59
61
  },
60
62
  onCancel: ()=>close(shown.id, true),
@@ -72,9 +74,9 @@ const useColumnEditing = ({ column, bands, container })=>{
72
74
  kind: 'edit',
73
75
  pills: {
74
76
  onToggle: (columnId)=>setOpenId((current)=>current === columnId ? null : columnId),
75
- openColumnId: open ? open.id : null
77
+ openColumnId: open && field ? open.id : null
76
78
  },
77
- editor: open ? editorOf(column, open) : void 0
79
+ editor: open && field ? editorOf(column, open, field) : void 0
78
80
  };
79
81
  };
80
82
  exports.useColumnEditing = __webpack_exports__.useColumnEditing;
@@ -4,23 +4,23 @@ import type { EditorOverlayProps } from './EditorOverlay';
4
4
  import type { SentenceBand } from './sentenceTypes';
5
5
  import type { EditorAnchor } from './useEditorPlacement';
6
6
  import type { RuleWindow } from './useRuleWindow';
7
- export interface ColumnEditingParams {
8
- column: ColumnEdit | undefined;
7
+ export interface ColumnEditingParams<Type> {
8
+ column: ColumnEdit<Type> | undefined;
9
9
  bands: readonly SentenceBand[];
10
10
  container: RuleWindow['container'];
11
11
  }
12
- export interface OpenColumnEditor extends Pick<ColumnPopoverProps, 'column' | 'onApply' | 'onCancel' | 'onMoreProperties'> {
12
+ export interface OpenColumnEditor<Type> extends Pick<ColumnPopoverProps<Type>, 'column' | 'field' | 'onApply' | 'onCancel' | 'onMoreProperties'> {
13
13
  anchor: EditorAnchor;
14
14
  onDismiss: NonNullable<EditorOverlayProps['onPressOutside']>;
15
15
  }
16
- export type ColumnEditing = {
16
+ export type ColumnEditing<Type> = {
17
17
  kind: 'plain';
18
18
  } | {
19
19
  kind: 'edit';
20
20
  pills: Pick<Extract<BandMode, {
21
21
  kind: 'edit';
22
22
  }>, 'onToggle' | 'openColumnId'>;
23
- editor: OpenColumnEditor | undefined;
23
+ editor: OpenColumnEditor<Type> | undefined;
24
24
  };
25
- export declare const useColumnEditing: ({ column, bands, container, }: ColumnEditingParams) => ColumnEditing;
25
+ export declare const useColumnEditing: <Type>({ column, bands, container, }: ColumnEditingParams<Type>) => ColumnEditing<Type>;
26
26
  //# sourceMappingURL=useColumnEditing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useColumnEditing.d.ts","sourceRoot":"","sources":["../../src/decision-table/useColumnEditing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAA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8
  const open = column && null !== openId ? bands.flatMap((band)=>band.columns).find((candidate)=>candidate.id === openId) : void 0;
9
- if (null !== openId && !open) setOpenId(null);
9
+ const field = column && open ? column.field(open.id) : void 0;
10
+ if (null !== openId && !field) setOpenId(null);
10
11
  useLayoutEffect(()=>{
11
12
  const columnId = refocusRef.current;
12
13
  if (null !== openId || null === columnId) return;
@@ -20,13 +21,14 @@ const useColumnEditing = ({ column, bands, container })=>{
20
21
  refocusRef.current = refocus ? columnId : null;
21
22
  setOpenId(null);
22
23
  };
23
- const editorOf = (edit, shown)=>{
24
+ const editorOf = (edit, shown, shownField)=>{
24
25
  const { onMoreProperties } = edit;
25
26
  return {
26
27
  column: shown,
28
+ field: shownField,
27
29
  anchor: (section)=>pillOf(section, shown.id),
28
30
  onApply: (change)=>{
29
- if (Object.keys(change).length > 0) edit.onCommit(shown.id, change);
31
+ if (Object.keys(change).some((key)=>'kind' !== key)) edit.onCommit(shown.id, change);
30
32
  close(shown.id, true);
31
33
  },
32
34
  onCancel: ()=>close(shown.id, true),
@@ -44,9 +46,9 @@ const useColumnEditing = ({ column, bands, container })=>{
44
46
  kind: 'edit',
45
47
  pills: {
46
48
  onToggle: (columnId)=>setOpenId((current)=>current === columnId ? null : columnId),
47
- openColumnId: open ? open.id : null
49
+ openColumnId: open && field ? open.id : null
48
50
  },
49
- editor: open ? editorOf(column, open) : void 0
51
+ editor: open && field ? editorOf(column, open, field) : void 0
50
52
  };
51
53
  };
52
54
  export { useColumnEditing };
@@ -275,10 +275,6 @@ const useDecisionTextEditLabels = ()=>{
275
275
  id: 'decision-text.missing_end',
276
276
  message: 'Enter both ends'
277
277
  }),
278
- endsOutOfOrder: _({
279
- id: 'decision-text.ends_out_of_order',
280
- message: 'From must not be past To'
281
- }),
282
278
  noValueChecked: _({
283
279
  id: 'decision-text.no_value_checked',
284
280
  message: 'Check a value'
@@ -339,7 +335,7 @@ const useDecisionTextEditLabels = ()=>{
339
335
  }),
340
336
  allowedValuesHint: _({
341
337
  id: 'decision-text.allowed_values_hint',
342
- message: 'Separate values with commas.'
338
+ message: 'Separate values with commas, and write each one as the example shows.'
343
339
  }),
344
340
  moreProperties: _({
345
341
  id: 'decision-text.more_properties',
@@ -1 +1 @@
1
- {"version":3,"file":"useDecisionTextStrings.d.ts","sourceRoot":"","sources":["../../src/decision-table/useDecisionTextStrings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAItF,eAAO,MAAM,qBAAqB,QAAO,kBAsExC,CAAC;AAGF,eAAO,MAAM,yBAAyB,QAAO,sBA4F5C,CAAC"}
1
+ {"version":3,"file":"useDecisionTextStrings.d.ts","sourceRoot":"","sources":["../../src/decision-table/useDecisionTextStrings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAItF,eAAO,MAAM,qBAAqB,QAAO,kBAsExC,CAAC;AAGF,eAAO,MAAM,yBAAyB,QAAO,sBAwF5C,CAAC"}
@@ -246,10 +246,6 @@ const useDecisionTextEditLabels = ()=>{
246
246
  id: 'decision-text.missing_end',
247
247
  message: 'Enter both ends'
248
248
  }),
249
- endsOutOfOrder: _({
250
- id: 'decision-text.ends_out_of_order',
251
- message: 'From must not be past To'
252
- }),
253
249
  noValueChecked: _({
254
250
  id: 'decision-text.no_value_checked',
255
251
  message: 'Check a value'
@@ -310,7 +306,7 @@ const useDecisionTextEditLabels = ()=>{
310
306
  }),
311
307
  allowedValuesHint: _({
312
308
  id: 'decision-text.allowed_values_hint',
313
- message: 'Separate values with commas.'
309
+ message: 'Separate values with commas, and write each one as the example shows.'
314
310
  }),
315
311
  moreProperties: _({
316
312
  id: 'decision-text.more_properties',
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  const external_react_namespaceObject = require("react");
30
30
  const external_useValueEditing_cjs_namespaceObject = require("./useValueEditing.cjs");
31
31
  const keyOf = (value)=>value ? (0, external_useValueEditing_cjs_namespaceObject.valueKey)(value) : void 0;
32
- const useEditState = (edit, labels)=>{
32
+ const useEditState = (edit, labels, voice)=>{
33
33
  const [held, setHeld] = (0, external_react_namespaceObject.useState)(edit?.editing ?? null);
34
34
  const [refusal, setRefusal] = (0, external_react_namespaceObject.useState)(null);
35
35
  const controlled = edit?.editing !== void 0;
@@ -45,6 +45,7 @@ const useEditState = (edit, labels)=>{
45
45
  if (!controlled) setHeld(next);
46
46
  };
47
47
  const shown = refusal && refusal.key === key && '' !== refusal.message.trim() ? refusal : null;
48
+ const { onMoveRule } = edit;
48
49
  return {
49
50
  edit: {
50
51
  ...edit,
@@ -67,6 +68,21 @@ const useEditState = (edit, labels)=>{
67
68
  setRefusal(null);
68
69
  hold(null);
69
70
  },
71
+ onClearCell: (cell)=>{
72
+ const answer = edit.onClearCell(cell);
73
+ if (void 0 === answer) return;
74
+ if (editing?.rowId === cell.rowId && editing.columnId === cell.columnId) setRefusal((last)=>({
75
+ key: (0, external_useValueEditing_cjs_namespaceObject.valueKey)(editing),
76
+ message: answer,
77
+ attempt: (last?.attempt ?? 0) + 1
78
+ }));
79
+ else voice.announce(answer);
80
+ return answer;
81
+ },
82
+ onMoveRule: onMoveRule && ((from, to)=>{
83
+ onMoveRule(from, to);
84
+ voice.announceMove(from, to);
85
+ }),
70
86
  onCancel: ()=>{
71
87
  edit.onCancel?.();
72
88
  hold(null);
@@ -1,8 +1,10 @@
1
- import type { DecisionTextEdit, DecisionTextEditLabels, ViewEdit } from './decisionTextTypes';
1
+ import type { DecisionTextEditLabels, CellEdit, ViewEdit } from './decisionTextTypes';
2
+ import type { TextAnnouncements } from './useTextAnnouncements';
2
3
  import type { CommitRefusal } from './valueTypes';
3
4
  export interface EditState {
4
5
  edit: ViewEdit | undefined;
5
6
  refusal: CommitRefusal | null;
6
7
  }
7
- export declare const useEditState: (edit: DecisionTextEdit | undefined, labels: DecisionTextEditLabels) => EditState;
8
+ export type EditVoice = Pick<TextAnnouncements, 'announce' | 'announceMove'>;
9
+ export declare const useEditState: (edit: CellEdit | undefined, labels: DecisionTextEditLabels, voice: EditVoice) => EditState;
8
10
  //# sourceMappingURL=useEditState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEditState.d.ts","sourceRoot":"","sources":["../../src/decision-table/useEditState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG9F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAOlD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;CAC/B;AAMD,eAAO,MAAM,YAAY,GACvB,MAAM,gBAAgB,GAAG,SAAS,EAClC,QAAQ,sBAAsB,KAC7B,SA4CF,CAAC"}
1
+ {"version":3,"file":"useEditState.d.ts","sourceRoot":"","sources":["../../src/decision-table/useEditState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAOlD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;CAC/B;AAMD,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC;AAG7E,eAAO,MAAM,YAAY,GACvB,MAAM,QAAQ,GAAG,SAAS,EAC1B,QAAQ,sBAAsB,EAC9B,OAAO,SAAS,KACf,SA+DF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { useState } from "react";
2
2
  import { valueKey } from "./useValueEditing.js";
3
3
  const keyOf = (value)=>value ? valueKey(value) : void 0;
4
- const useEditState = (edit, labels)=>{
4
+ const useEditState = (edit, labels, voice)=>{
5
5
  const [held, setHeld] = useState(edit?.editing ?? null);
6
6
  const [refusal, setRefusal] = useState(null);
7
7
  const controlled = edit?.editing !== void 0;
@@ -17,6 +17,7 @@ const useEditState = (edit, labels)=>{
17
17
  if (!controlled) setHeld(next);
18
18
  };
19
19
  const shown = refusal && refusal.key === key && '' !== refusal.message.trim() ? refusal : null;
20
+ const { onMoveRule } = edit;
20
21
  return {
21
22
  edit: {
22
23
  ...edit,
@@ -39,6 +40,21 @@ const useEditState = (edit, labels)=>{
39
40
  setRefusal(null);
40
41
  hold(null);
41
42
  },
43
+ onClearCell: (cell)=>{
44
+ const answer = edit.onClearCell(cell);
45
+ if (void 0 === answer) return;
46
+ if (editing?.rowId === cell.rowId && editing.columnId === cell.columnId) setRefusal((last)=>({
47
+ key: valueKey(editing),
48
+ message: answer,
49
+ attempt: (last?.attempt ?? 0) + 1
50
+ }));
51
+ else voice.announce(answer);
52
+ return answer;
53
+ },
54
+ onMoveRule: onMoveRule && ((from, to)=>{
55
+ onMoveRule(from, to);
56
+ voice.announceMove(from, to);
57
+ }),
42
58
  onCancel: ()=>{
43
59
  edit.onCancel?.();
44
60
  hold(null);