@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.mjs CHANGED
@@ -1998,6 +1998,7 @@ var exprIndex = `index`;
1998
1998
  var defaultKey = `!!`;
1999
1999
  var numberKey = `!!number`;
2000
2000
  var codeKey = `!!codeKey`;
2001
+ var codeAliasKey = `!!codeAliasKey`;
2001
2002
  var funcCommand = "fn:";
2002
2003
  var RuleToken = /* @__PURE__ */ ((RuleToken2) => {
2003
2004
  RuleToken2["AliasToken"] = "alias";
@@ -2970,7 +2971,7 @@ var resolveCompileMacroGen = (ctx, expr, currentCellIndex) => {
2970
2971
  var getExprEnd = function(macroExpr, matchIndex, rparenToken) {
2971
2972
  return macroExpr.indexOf(rparenToken, matchIndex);
2972
2973
  };
2973
- var macroFormatters = [numberKey, codeKey];
2974
+ var macroFormatters = [numberKey, codeKey, codeAliasKey];
2974
2975
  var extractMacro = function(expr, options) {
2975
2976
  let end = NaN;
2976
2977
  const offset = options.startToken.length;
@@ -3009,9 +3010,17 @@ var __codeKey = (str) => {
3009
3010
  var __numberKey = (str) => {
3010
3011
  return Number.parseInt(str, 10).toString();
3011
3012
  };
3013
+ var __codeAliasKey = (str) => {
3014
+ const key = __codeKey(str);
3015
+ if (key !== "") {
3016
+ return `${defaultRuleTokenParserMap.get("@" /* UseAliasToken */)}${key}`;
3017
+ }
3018
+ return "";
3019
+ };
3012
3020
  var macroFormatter = /* @__PURE__ */ new Map([
3013
3021
  [codeKey, __codeKey],
3014
3022
  [numberKey, __numberKey],
3023
+ [codeAliasKey, __codeAliasKey],
3015
3024
  [defaultKey, (v) => v]
3016
3025
  ]);
3017
3026
  var execMacroFormat = function(value, formatter) {