@vdhewei/xlsx-template-lib 1.2.5 → 1.3.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.
package/dist/index.js CHANGED
@@ -2076,6 +2076,7 @@ var exprIndex = `index`;
2076
2076
  var defaultKey = `!!`;
2077
2077
  var numberKey = `!!number`;
2078
2078
  var codeKey = `!!codeKey`;
2079
+ var codeAliasKey = `!!codeAliasKey`;
2079
2080
  var funcCommand = "fn:";
2080
2081
  var RuleToken = /* @__PURE__ */ ((RuleToken2) => {
2081
2082
  RuleToken2["AliasToken"] = "alias";
@@ -3048,7 +3049,7 @@ var resolveCompileMacroGen = (ctx, expr, currentCellIndex) => {
3048
3049
  var getExprEnd = function(macroExpr, matchIndex, rparenToken) {
3049
3050
  return macroExpr.indexOf(rparenToken, matchIndex);
3050
3051
  };
3051
- var macroFormatters = [numberKey, codeKey];
3052
+ var macroFormatters = [numberKey, codeKey, codeAliasKey];
3052
3053
  var extractMacro = function(expr, options) {
3053
3054
  let end = NaN;
3054
3055
  const offset = options.startToken.length;
@@ -3087,9 +3088,17 @@ var __codeKey = (str) => {
3087
3088
  var __numberKey = (str) => {
3088
3089
  return Number.parseInt(str, 10).toString();
3089
3090
  };
3091
+ var __codeAliasKey = (str) => {
3092
+ const key = __codeKey(str);
3093
+ if (key !== "") {
3094
+ return `${defaultRuleTokenParserMap.get("@" /* UseAliasToken */)}${key}`;
3095
+ }
3096
+ return "";
3097
+ };
3090
3098
  var macroFormatter = /* @__PURE__ */ new Map([
3091
3099
  [codeKey, __codeKey],
3092
3100
  [numberKey, __numberKey],
3101
+ [codeAliasKey, __codeAliasKey],
3093
3102
  [defaultKey, (v) => v]
3094
3103
  ]);
3095
3104
  var execMacroFormat = function(value, formatter) {