@sheetxl/studio-vanilla 0.4.20 → 0.4.21
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/browser/cjs/index.cjs +80 -2
- package/browser/cjs/{DlL3FUzHZ4HVF-yg.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
- package/browser/esm/{BFUWwMA9uskwVkew.mjs → NBuS53B7u8hItiXf.mjs} +933 -937
- package/browser/esm/index.mjs +176 -4
- package/cdn/assets/CY8njwo06MWkoPz2.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B3IrGavp2xDl72qi.cjs +0 -15
- package/browser/cjs/B4ScrvWBCXLzvNBz.cjs +0 -145
- package/browser/cjs/BBNggAKHDP4QyhrD.cjs +0 -6
- package/browser/cjs/BC_a9wiziJZdu6Au.cjs +0 -6
- package/browser/cjs/BDxykI6GcXpGGGMz.cjs +0 -42
- package/browser/cjs/BK6DsykAfJG4V-cJ.cjs +0 -6
- package/browser/cjs/BKow6xaj0GHFH5-V.cjs +0 -6
- package/browser/cjs/BOAxaoihJZZzZXhd.cjs +0 -6
- package/browser/cjs/BSlU398ba-ACAG1g.cjs +0 -11
- package/browser/cjs/BSoRD8INLnGqOd24.cjs +0 -7
- package/browser/cjs/BTxfWiE-FbVvlbXz.cjs +0 -11
- package/browser/cjs/BdltTXLt7iZT8sku.cjs +0 -6
- package/browser/cjs/Bf-D_AYDbEeRcsvz.cjs +0 -6
- package/browser/cjs/Bhlan81dumwgyb0S.cjs +0 -6
- package/browser/cjs/BlJixWFmG-z3n7dN.cjs +0 -6
- package/browser/cjs/BndDL5HS4RNIfwOd.cjs +0 -15
- package/browser/cjs/Buw8XeqL6XQwxqnQ.cjs +0 -32
- package/browser/cjs/C04_CccTUmfnv-ln.cjs +0 -6
- package/browser/cjs/C4AWzM1Uh9cuE1A9.cjs +0 -6
- package/browser/cjs/C5TLXtw93fBnRGm7.cjs +0 -378
- package/browser/cjs/CKa-Z1SfYc0pkIX2.cjs +0 -6
- package/browser/cjs/CLiSJrUNaSxa5Mn7.cjs +0 -16
- package/browser/cjs/CODi1uYlZ35lFLh9.cjs +0 -6
- package/browser/cjs/CSM5H5PTjrTaUgKK.cjs +0 -6
- package/browser/cjs/CTPgM-UqKCo4_hd1.cjs +0 -6
- package/browser/cjs/CW5RuE4isKBlwHmQ.cjs +0 -6
- package/browser/cjs/CX82d7xySIGMF7yM.cjs +0 -6
- package/browser/cjs/CXik9BghKbVW93T0.cjs +0 -124
- package/browser/cjs/Ccv5NHm99sYZnKE6.cjs +0 -7
- package/browser/cjs/CeH0O9zPmIGKjuT9.cjs +0 -19
- package/browser/cjs/CeLG8vmgbEkx4oD1.cjs +0 -6
- package/browser/cjs/CvYl4W2vXnvHHHoI.cjs +0 -6
- package/browser/cjs/D2J4RLkySRIXFbsa.cjs +0 -6
- package/browser/cjs/D2bZuhwA7aCEA0It.cjs +0 -6
- package/browser/cjs/D3hV1-QRPKCq0om8.cjs +0 -6
- package/browser/cjs/D6WxWENDWFXA_esX.cjs +0 -6
- package/browser/cjs/DEiPHs81OFnGI_GL.cjs +0 -6
- package/browser/cjs/DHiQ_sK8f-95Ft4X.cjs +0 -12
- package/browser/cjs/DMpqQkdCfg2AjXjR.cjs +0 -6
- package/browser/cjs/DUjgS2e8jjyhZF41.cjs +0 -6
- package/browser/cjs/DWIR1gQMiYyoUVpN.cjs +0 -7
- package/browser/cjs/DawJBg8LyIArkwdU.cjs +0 -6
- package/browser/cjs/Dn5IBCKPuNI0ypyZ.cjs +0 -6
- package/browser/cjs/Dp6UwWmFehNr8oln.cjs +0 -6
- package/browser/cjs/Dr95ZpJD5KpADFgL.cjs +0 -6
- package/browser/cjs/IxfGyvVPF27qqDF3.cjs +0 -6
- package/browser/cjs/P7jR9JAKpf5me2pK.cjs +0 -6
- package/browser/cjs/QonkTPcCkOm4Mvas.cjs +0 -6
- package/browser/cjs/T4zy652TD1RHF35F.cjs +0 -6
- package/browser/cjs/d6ywgaNww4eYXcem.cjs +0 -1501
- package/browser/cjs/dQ_t_glP-41DsAl-.cjs +0 -6
- package/browser/cjs/iIOyWIrlq0JiZyZX.cjs +0 -6
- package/browser/cjs/jX_tynzFoHAGPZOz.cjs +0 -6
- package/browser/cjs/nlzloz3gqSXQwTl5.cjs +0 -13
- package/browser/cjs/xPUjEhL251Mb-kyD.cjs +0 -161
- package/browser/cjs/zreCxaXU5L2iHQ99.cjs +0 -6
- package/browser/esm/2vIB3gG-Ct-P7aHY.mjs +0 -24
- package/browser/esm/B1qmfUH_Mmjtp3JU.mjs +0 -56
- package/browser/esm/B4ABRWtE31zu8-wJ.mjs +0 -21
- package/browser/esm/B6c_mMwG96t6MlCE.mjs +0 -10
- package/browser/esm/B7ohU_quBXWjiBEw.mjs +0 -3934
- package/browser/esm/BGJaDv3Ih-M1lFCD.mjs +0 -10
- package/browser/esm/BJkeQi-0GTlyPsTT.mjs +0 -52369
- package/browser/esm/BR2yOGMlFrbNy1I_.mjs +0 -472
- package/browser/esm/BRzxK84abQUinUUx.mjs +0 -10
- package/browser/esm/BS_-p_4yMCoR9FTp.mjs +0 -10
- package/browser/esm/BTbBL2qySirAIMIH.mjs +0 -1346
- package/browser/esm/Be9tvHxvnxnHNRa4.mjs +0 -12
- package/browser/esm/BfiejFYnvgVrrJPI.mjs +0 -10
- package/browser/esm/Bj4d7nd4XMugBsBg.mjs +0 -39
- package/browser/esm/Bmfu8IUFzu9KyCkA.mjs +0 -10
- package/browser/esm/BqgjdQ15LFcefVOZ.mjs +0 -425
- package/browser/esm/BuX3I7e8lbon25vL.mjs +0 -1702
- package/browser/esm/Bz0TojPavQ5NTjyD.mjs +0 -633
- package/browser/esm/CA33PnXmPNl09v6w.mjs +0 -84
- package/browser/esm/CPchasanZLQiASse.mjs +0 -10
- package/browser/esm/CSDiL3gZro2_BYTj.mjs +0 -10
- package/browser/esm/CT_g1GDC8_vSGR0o.mjs +0 -48
- package/browser/esm/CVvfga1mKyvzrvCr.mjs +0 -20
- package/browser/esm/CXSiJ-t5xz78GMwK.mjs +0 -10
- package/browser/esm/CYrbG4T_bwbc4Un4.mjs +0 -390
- package/browser/esm/CeSDjV2b8w7KibJw.mjs +0 -1466
- package/browser/esm/Cjp7NabZ26PaBnIT.mjs +0 -46
- package/browser/esm/CmLCIveZbsUFrSOH.mjs +0 -1665
- package/browser/esm/CpDyqZXpstRo2buW.mjs +0 -10
- package/browser/esm/CpQM3xIeariuqfsN.mjs +0 -47
- package/browser/esm/D2L4EVLdv-YwKGoi.mjs +0 -2344
- package/browser/esm/D7bqIxhqlHgc3Fih.mjs +0 -10
- package/browser/esm/DJx6S7TOhQyWdjS5.mjs +0 -10
- package/browser/esm/DR85glElKOQxCdEw.mjs +0 -820
- package/browser/esm/DWnopZ6R26qNLVyV.mjs +0 -10
- package/browser/esm/DaoqFa2lhVoZvd16.mjs +0 -421
- package/browser/esm/DgxaqoqInkc26SCt.mjs +0 -13208
- package/browser/esm/Dkf0_o7D9GkUfOZy.mjs +0 -147
- package/browser/esm/DlASr70UXrIpKZQO.mjs +0 -2174
- package/browser/esm/DmXkRZFP-WnV2YT9.mjs +0 -10
- package/browser/esm/DsabS3TdXZB45_O2.mjs +0 -1575
- package/browser/esm/Dvo7tXJcgnIXR-H7.mjs +0 -5582
- package/browser/esm/JdOvTKCcf5acl7vA.mjs +0 -10
- package/browser/esm/KUyPDaQO4D8lwO7O.mjs +0 -21
- package/browser/esm/KWZAe-e6U7Po4gCx.mjs +0 -44
- package/browser/esm/Qjkn8L0WuEQToAqm.mjs +0 -41
- package/browser/esm/RvEM-YtFLw3OMG0V.mjs +0 -29
- package/browser/esm/S2TZ7C9tQtDNeeGo.mjs +0 -10
- package/browser/esm/VYFESZA0Jc8C13ZT.mjs +0 -10
- package/browser/esm/_sUvLBCLSPhV2gF6.mjs +0 -10
- package/browser/esm/dWGGn8a_Ez8kVjgZ.mjs +0 -10
- package/browser/esm/dwY5oHtoGa_ktt9_.mjs +0 -1365
- package/browser/esm/giu63J2gO2p8JJIf.mjs +0 -10
- package/browser/esm/glJJyP0v0nlhAzqM.mjs +0 -10
- package/browser/esm/q5jyS6wUD9X8N3dI.mjs +0 -3755
- package/browser/esm/xbsV0YR05atX96kb.mjs +0 -10
- package/cdn/assets/2vIB3gG-Ct-P7aHY.js +0 -24
- package/cdn/assets/9GNkN_zTAHpnP-uq.js +0 -1575
- package/cdn/assets/B6c_mMwG96t6MlCE.js +0 -10
- package/cdn/assets/BBGivbkBG9VS_rL9.js +0 -3756
- package/cdn/assets/BCfZ9L4sqA1AhATQ.js +0 -46
- package/cdn/assets/BF0szY6Cs6OTiu4J.js +0 -22
- package/cdn/assets/BFvB3zk5mbav2VDI.js +0 -52200
- package/cdn/assets/BGJaDv3Ih-M1lFCD.js +0 -10
- package/cdn/assets/BGQ19MuEoWb0IGOg.js +0 -425
- package/cdn/assets/BKAFXvz5L4pnwrYW.js +0 -41
- package/cdn/assets/BRzxK84abQUinUUx.js +0 -10
- package/cdn/assets/BS_-p_4yMCoR9FTp.js +0 -10
- package/cdn/assets/BTbBL2qySirAIMIH.js +0 -1346
- package/cdn/assets/Be9tvHxvnxnHNRa4.js +0 -12
- package/cdn/assets/BfiejFYnvgVrrJPI.js +0 -10
- package/cdn/assets/Bj6XCGohW0EagXDQ.js +0 -1702
- package/cdn/assets/Bmfu8IUFzu9KyCkA.js +0 -10
- package/cdn/assets/Bnpwlyv8i_gnevRF.js +0 -3934
- package/cdn/assets/BnrLDtUMM23rGXOR.js +0 -390
- package/cdn/assets/Bz0TojPavQ5NTjyD.js +0 -633
- package/cdn/assets/C-saEYaoPI4gaVAh.js +0 -820
- package/cdn/assets/CBG91FlGgFb_NSW3.js +0 -1466
- package/cdn/assets/CO9eLmNMi1heLPMx.js +0 -2177
- package/cdn/assets/CPchasanZLQiASse.js +0 -10
- package/cdn/assets/CSDiL3gZro2_BYTj.js +0 -10
- package/cdn/assets/CXSiJ-t5xz78GMwK.js +0 -10
- package/cdn/assets/Cc_7h2P328hlBcqK.js +0 -472
- package/cdn/assets/CmLCIveZbsUFrSOH.js +0 -1665
- package/cdn/assets/CpDyqZXpstRo2buW.js +0 -10
- package/cdn/assets/Cv2EzXYuphY8Hlz2.js +0 -23
- package/cdn/assets/Cz1EUITrDS2M-lu2.js +0 -2346
- package/cdn/assets/D7bqIxhqlHgc3Fih.js +0 -10
- package/cdn/assets/DDWoPuN8AcPJHNxL.js +0 -58
- package/cdn/assets/DJx6S7TOhQyWdjS5.js +0 -10
- package/cdn/assets/DU8_1yjWbaEkXcbL.js +0 -12
- package/cdn/assets/DWnopZ6R26qNLVyV.js +0 -10
- package/cdn/assets/DYE-hWYAUd_f6MX8.js +0 -46
- package/cdn/assets/DaoqFa2lhVoZvd16.js +0 -421
- package/cdn/assets/DfpCefkqWIezzC8Z.js +0 -49
- package/cdn/assets/DgxaqoqInkc26SCt.js +0 -13208
- package/cdn/assets/DmXkRZFP-WnV2YT9.js +0 -10
- package/cdn/assets/EN4PLLABu5llaV3T.js +0 -21
- package/cdn/assets/JdOvTKCcf5acl7vA.js +0 -10
- package/cdn/assets/KUyPDaQO4D8lwO7O.js +0 -21
- package/cdn/assets/LbFq2oCowUDgCX8L.js +0 -43
- package/cdn/assets/S2TZ7C9tQtDNeeGo.js +0 -10
- package/cdn/assets/SPvRfEBpgC5rbgPz.js +0 -29
- package/cdn/assets/SsQFeDXfmfXHyy1R.js +0 -5582
- package/cdn/assets/TP7wJaHcKRz3uH_W.js +0 -50
- package/cdn/assets/UhBzX4vQryCjy6ce.js +0 -84
- package/cdn/assets/VYFESZA0Jc8C13ZT.js +0 -10
- package/cdn/assets/_sUvLBCLSPhV2gF6.js +0 -10
- package/cdn/assets/dWGGn8a_Ez8kVjgZ.js +0 -10
- package/cdn/assets/dwY5oHtoGa_ktt9_.js +0 -1365
- package/cdn/assets/giu63J2gO2p8JJIf.js +0 -10
- package/cdn/assets/glJJyP0v0nlhAzqM.js +0 -10
- package/cdn/assets/nsmFGDjpeUcAO4is.js +0 -149
- package/cdn/assets/xbsV0YR05atX96kb.js +0 -10
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e = { DATE: { s: "Returns the number that represents the date in Microsoft Excel date-time code", p: { year: { d: "is a number from 1900 or 1904 (depending on the workbook's date system) to 9999" }, month: { d: "is a number from 1 to 12 representing the month of the year" }, day: { d: "is a number from 1 to 31 representing the day of the month" } } }, DATEDIF: { s: "Returns the number of days between two dates", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, unit: { d: "is a string that specifies the unit of time to use" } }, h: "Legacy" }, DATESTRING: { s: "Returns NA.", p: { number: { d: "is a number that is ignored" } }, h: "Legacy" }, DATEVALUE: { s: "Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code", p: { dateText: { d: "is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999" } } }, DAY: { s: "Returns the day of the month, a number from 1 to 31.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, DAYS: { s: "Returns the number of days between the two dates.", p: { endDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, startDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" } } }, DAYS360: { s: "Returns the number of days between two dates based on a 360-day year (twelve 30-day months)", p: { startDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, endDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, method: { d: "is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.", v: !1 } } }, EDATE: { s: "Returns the serial number of the date that is the indicated number of months before or after the start date", p: { startDate: { d: "is a serial date number that represents the start date" }, months: { d: "is the number of months before or after start_date" } } }, EOMONTH: { s: "Returns the serial number of the last day of the month before or after a specified number of months", p: { startDate: { d: "is a serial date number that represents the start date" }, months: { d: "is the number of months before or after the start_date" } } }, HOUR: { s: "Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, ISOWEEKNUM: { s: "Returns the ISO week number in the year for a given date", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, MINUTE: { s: "Returns the minute, a number from 0 to 59.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, MONTH: { s: "Returns the month, a number from 1 (January) to 12 (December).", p: { serialOrString: { d: "is a number in the date-time code used by Excel" } } }, NETWORKDAYS: { s: "Returns the number of whole workdays between two dates", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, holidays: { d: "is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, "NETWORKDAYS.INTL": { s: "Returns the number of whole workdays between two dates with custom weekend parameters", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, weekend: { d: "is a number or string specifying when weekends occur", v: 1 }, holidays: { d: "is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, NOW: { s: "Returns the current date and time formatted as a date and time.", p: {} }, SECOND: { s: "Returns the second, a number from 0 to 59.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM" } } }, TIME: { s: "Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format", p: { hour: { d: "is a number from 0 to 23 representing the hour" }, minute: { d: "is a number from 0 to 59 representing the minute" }, second: { d: "is a number from 0 to 59 representing the second" } } }, TIMEVALUE: { s: "Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula", p: { timeText: { d: "is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)" } } }, TODAY: { s: "Returns the current date formatted as a date.", p: {} }, WEEKDAY: { s: "Returns a number from 1 to 7 identifying the day of the week of a date.", p: { serialOrString: { d: "is a number that represents a date" }, returnType: { d: "is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3", v: 1 } } }, WEEKNUM: { s: "Returns the week number in the year", p: { serialOrString: { d: "is the date-time code used by Excel for date and time calculation" }, returnType: { d: "is a number (1 or 2) that determines the type of the return value", v: 1 } } }, WORKDAY: { s: "Returns the serial number of the date before or after a specified number of workdays", p: { startDate: { d: "is a serial date number that represents the start date" }, days: { d: "is the number of nonweekend and non-holiday days before or after start_date" }, holidays: { d: "is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, "WORKDAY.INTL": { s: "Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters", p: { startDate: { d: "is a serial date number that represents the start date" }, days: { d: "is the number of nonweekend and non-holiday days before or after start_date" }, weekend: { d: "is a number or string specifying when weekends occur", v: 1 }, holidays: { d: "is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, YEAR: { s: "Returns the year of a date, an integer in the range 1900 - 9999.", p: { serialOrString: { d: "is a number in the date-time code used by Excel" } } }, YEARFRAC: { s: "Returns the year fraction representing the number of whole days between start_date and end_date", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, basis: { d: "is the type of day count basis to use", v: 0 } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e = { CUBEKPIMEMBER: { s: "Returns a key performance indicator (KPI) property and displays the KPI name in the cell.", p: { connection: { d: "is the name of a connection to an OLAP cube" }, kpiName: { d: "is the KPI name" }, kpiProperty: { d: "is the KPI property" }, caption: { d: "is the caption to be displayed in the cell" } }, h: "Unimplemented" }, CUBEMEMBER: { s: "Returns a member or tuple from the cube.", p: { connection: { d: "is the name of a connection to an OLAP cube" }, memberExpression: { d: "is the expression representing the name of a member or tuple in the OLAP cube" }, caption: { d: "is the caption to be displayed in the cell" } }, h: "Unimplemented" }, CUBEMEMBERPROPERTY: { s: "Returns the value of a member property from the cube.", p: { connection: { d: "is the name of a connection to an OLAP cube" }, memberExpression: { d: "is the expression representing the name of a member in the OLAP cube" }, kpiProperty: { d: "is the property name" } }, h: "Unimplemented" }, CUBERANKEDMEMBER: { s: "Returns the nth, or ranked, member in a set.", p: { connection: { d: "is the name of a connection to an OLAP cube" }, setExpression: { d: "is the set from which the element is to be retrieved" }, rank: { d: "is the rank of the element to be retrieved" }, caption: { d: "is the caption to be displayed in the cell" } }, h: "Unimplemented" }, CUBESET: { s: "Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.", p: { connection: { d: "is the name of a connection to an OLAP cube" }, setExpression: { d: "is the expression for the set" }, caption: { d: "is the caption to be displayed in the cell" }, sortOrder: { d: "is the sort order" }, sortBy: { d: "is the sort by" } }, h: "Unimplemented" }, CUBESETCOUNT: { s: "Returns the number of items in a set.", p: { set: { d: "is the set whose elements are to be counted" } }, h: "Unimplemented" }, CUBEVALUE: { s: "Returns an aggregated value from the cube.", p: { connection: { d: "is the name of a connection to an OLAP cube" }, memberExpression: {} }, h: "Unimplemented" } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e = { AND: { s: "Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE", p: { logical: { d: "logical1,logical2,... are 1 to 255 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references" } } }, BYCOL: { s: "Applies a LAMBDA function to each column and returns an array of the results.", p: { array: { d: "is an array to be separated by column" }, fn: { d: "is a LAMBDA that is called to scan the array. The LAMBDA takes two parameters, accumulator and value." } }, h: "Unimplemented" }, BYROW: { s: "Applies a LAMBDA function to each row and returns an array of the results.", p: { array: { d: "is an array to be separated by column" }, fn: { d: "is a LAMBDA that is called to scan the array. The LAMBDA takes two parameters, accumulator and value." } }, h: "Unimplemented" }, FALSE: { s: "Returns the logical value FALSE", p: {} }, IF: { s: "Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE", p: { logicalTest: { d: "is any value or expression that can be evaluated to TRUE or FALSE" }, valueIfTrue: { d: "is the value that is returned if Logical_test is TRUE. If omitted, TRUE is returned. You can nest up to seven IF functions" }, valueIfFalse: { d: "is the value that is returned if Logical_test is FALSE. If omitted, FALSE is returned" } } }, IFERROR: { s: "Returns value_if_error if expression is an error and the value of the expression itself otherwise", p: { value: { d: "is any value or expression or reference" }, valueIfError: { d: "is any value or expression or reference" } } }, IFNA: { s: "Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression", p: { value: { d: "is any value or expression or reference" }, valueIfError: { d: "is any value or expression or reference" } } }, IFS: { s: "Checks whether one or more conditions are met and returns a value corresponding to the first TRUE condition", p: { logicalTest: { d: "logical_test1,logical_test2,... is any value or expression that can be evaluated to TRUE or FALSE" }, logicalTrue: { d: "value_if_true1,value_if_true2,... is the value returned if Logical_test is TRUE" }, rest: {} } }, LAMDA: { s: "Creates a function value with can be called within formulas.", p: { parameterOrCalculation: { d: "a parameter or a calculation that returns a value. If a parameter, it must be the last argument." } }, h: "Unimplemented" }, LET: { s: "Assigns calculation results to names. Useful for storing intermediate calculations and values by defining names inside a formula. These names only apply within the scope of the LET function.", p: { name: { d: "name1,name2,... the name, or a calculation which can make use of all names within the LET. Names must start with a letter, cannot be the output of a formula, or conflict with range syntax." }, nameOrValue: { d: "name_value1,name_value2,... the value associated with the name." }, calculationOrName: {}, rest: {} }, h: "Unimplemented" }, MAKEARRAY: { s: "Returns a calculated array of a specified row and column size, by applying a LAMBDA function.", p: { rows: { d: "is the number of rows in the array. Must be greater than zero." }, columns: { d: "is the number of columns in the array. Must be greater than zero." }, fn: { d: "is a LAMBDA that is called to create the array. The LAMBDA takes two parameters, row index and column index." } }, h: "Unimplemented" }, MAP: { s: "Returns an array formed by 'mapping' each value in the array(s) to a new value by applying a lambda to create a new value.", p: { array: { d: "is an array to be mapped" }, lamdaOrArray: { d: "lambda_or_array1,lambda_or_array2,... is a LAMBDA which must be the last argument and must have a parameter for each array passed, or another array to be mapped" } }, h: "Unimplemented" }, NOT: { s: "Changes FALSE to TRUE, or TRUE to FALSE", p: { logical: { d: "is a value or expression that can be evaluated to TRUE or FALSE" } } }, OR: { s: "Checks whether any of the arguments are TRUE, and returns TRUE or FALSE. Returns FALSE only if all arguments are FALSE", p: { logical: { d: "logical1,logical2,... are 1 to 255 conditions that you want to test that can be either TRUE or FALSE" } } }, REDUCE: { s: "Reduces an array to an accumulated value by applying a LAMBDA function to each value and returning the total value in the accumulator.", p: { initialValue: { d: "is the starting value for the accumulator" }, array: { d: "is an array to be reduced" }, fn: { d: "is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value." } }, h: "Unimplemented" }, SCAN: { s: "Scans an array by applying a LAMBDA function to each value and returns an array that has each intermediate value", p: { initialValue: { d: "is the starting value for the accumulator" }, array: { d: "is an array to be reduced" }, fn: { d: "is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value." } }, h: "Unimplemented" }, SWITCH: { s: "Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value is returned", p: { expression: {}, value: { d: "is an expression to be evaluated" }, results: { d: "result1,result2,... is a result to be returned if the corresponding value matches expression" } }, h: "Unimplemented" }, TRUE: { s: "Returns the logical value TRUE", p: {} }, XOR: { s: "Returns a logical 'Exclusive Or' of all arguments", p: { logical: { d: "logical1,logical2,... are 1 to 254 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references" } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
import { $ as he } from "./C-saEYaoPI4gaVAh.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
4
|
-
*
|
|
5
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/
|
|
8
|
-
var se, q, r;
|
|
9
|
-
(q = se || (se = {})).Orientation = { Column: "column", Row: "row" }, q.Orientations = { ...q.Orientation, Both: "both" }, q.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
10
|
-
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
11
|
-
class a extends Error {
|
|
12
|
-
constructor(n, i, S, J) {
|
|
13
|
-
super(S, J), this._label = i, this._code = n, this.details = J;
|
|
14
|
-
}
|
|
15
|
-
static {
|
|
16
|
-
this.code = e.Code.Unknown;
|
|
17
|
-
}
|
|
18
|
-
get isFormulaError() {
|
|
19
|
-
return !0;
|
|
20
|
-
}
|
|
21
|
-
getLabel() {
|
|
22
|
-
return this._label;
|
|
23
|
-
}
|
|
24
|
-
getCode() {
|
|
25
|
-
return this._code;
|
|
26
|
-
}
|
|
27
|
-
equals(n) {
|
|
28
|
-
return !!n && (this._code === n._code || this._code === n.code);
|
|
29
|
-
}
|
|
30
|
-
get [Symbol.toStringTag]() {
|
|
31
|
-
return "[FormulaError]";
|
|
32
|
-
}
|
|
33
|
-
toString() {
|
|
34
|
-
return this.message || this._label;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
e.Known = a;
|
|
38
|
-
class T extends a {
|
|
39
|
-
constructor(n, i) {
|
|
40
|
-
super(e.Code.Parse, e.Label.Parse, n, i);
|
|
41
|
-
}
|
|
42
|
-
static {
|
|
43
|
-
this.code = e.Code.Parse;
|
|
44
|
-
}
|
|
45
|
-
getDetails() {
|
|
46
|
-
const n = this.details;
|
|
47
|
-
return { line: n?.line ?? 1, column: n?.column ?? 1, offset: n?.offset ?? 0, length: n?.length ?? 0 };
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
e.Parse = T;
|
|
51
|
-
class x extends a {
|
|
52
|
-
constructor(n, i) {
|
|
53
|
-
super(e.Code.Null, e.Label.Null, n, i);
|
|
54
|
-
}
|
|
55
|
-
static {
|
|
56
|
-
this.code = e.Code.Null;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
e.Null = x;
|
|
60
|
-
class j extends a {
|
|
61
|
-
constructor(n, i) {
|
|
62
|
-
super(e.Code.Div0, e.Label.Div0, n, i);
|
|
63
|
-
}
|
|
64
|
-
static {
|
|
65
|
-
this.code = e.Code.Div0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
e.Div0 = j;
|
|
69
|
-
class X extends a {
|
|
70
|
-
constructor(n, i) {
|
|
71
|
-
super(e.Code.Value, e.Label.Value, n, i);
|
|
72
|
-
}
|
|
73
|
-
static {
|
|
74
|
-
this.code = e.Code.Value;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
e.Value = X;
|
|
78
|
-
class s extends a {
|
|
79
|
-
constructor(n, i) {
|
|
80
|
-
super(e.Code.Ref, e.Label.Ref, n, i);
|
|
81
|
-
}
|
|
82
|
-
static {
|
|
83
|
-
this.code = e.Code.Ref;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
e.Ref = s;
|
|
87
|
-
class K extends a {
|
|
88
|
-
constructor(n, i) {
|
|
89
|
-
super(e.Code.Name, e.Label.Name, n, i);
|
|
90
|
-
}
|
|
91
|
-
static {
|
|
92
|
-
this.code = e.Code.Name;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
e.Name = K;
|
|
96
|
-
class U extends a {
|
|
97
|
-
constructor(n, i) {
|
|
98
|
-
super(e.Code.Num, e.Label.Num, n, i);
|
|
99
|
-
}
|
|
100
|
-
static {
|
|
101
|
-
this.code = e.Code.Num;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
e.Num = U;
|
|
105
|
-
class z extends a {
|
|
106
|
-
constructor(n, i) {
|
|
107
|
-
super(e.Code.NA, e.Label.NA, n, i);
|
|
108
|
-
}
|
|
109
|
-
static {
|
|
110
|
-
this.code = e.Code.NA;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
e.NA = z;
|
|
114
|
-
class Y extends a {
|
|
115
|
-
constructor(n, i) {
|
|
116
|
-
super(e.Code.GettingData, e.Label.GettingData, n, i);
|
|
117
|
-
}
|
|
118
|
-
static {
|
|
119
|
-
this.code = e.Code.GettingData;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
e.GettingData = Y;
|
|
123
|
-
class M extends a {
|
|
124
|
-
constructor(n, i) {
|
|
125
|
-
super(e.Code.Spill, e.Label.Spill, n, i);
|
|
126
|
-
}
|
|
127
|
-
static {
|
|
128
|
-
this.code = e.Code.Spill;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
e.Spill = M;
|
|
132
|
-
class I extends a {
|
|
133
|
-
constructor(n, i) {
|
|
134
|
-
super(e.Code.Connect, e.Label.Connect, n, i);
|
|
135
|
-
}
|
|
136
|
-
static {
|
|
137
|
-
this.code = e.Code.Connect;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
e.Connect = I;
|
|
141
|
-
class G extends a {
|
|
142
|
-
constructor(n, i) {
|
|
143
|
-
super(e.Code.Blocked, e.Label.Blocked, n, i);
|
|
144
|
-
}
|
|
145
|
-
static {
|
|
146
|
-
this.code = e.Code.Blocked;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
e.Blocked = G;
|
|
150
|
-
class _ extends a {
|
|
151
|
-
constructor(n, i) {
|
|
152
|
-
super(e.Code.Unknown, e.Label.Unknown, n, i);
|
|
153
|
-
}
|
|
154
|
-
static {
|
|
155
|
-
this.code = e.Code.Unknown;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
e.Unknown = _;
|
|
159
|
-
class F extends a {
|
|
160
|
-
constructor(n, i) {
|
|
161
|
-
super(e.Code.Field, e.Label.Field, n, i);
|
|
162
|
-
}
|
|
163
|
-
static {
|
|
164
|
-
this.code = e.Code.Field;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
e.Field = F;
|
|
168
|
-
class Q extends a {
|
|
169
|
-
constructor(n, i) {
|
|
170
|
-
super(e.Code.Calc, e.Label.Calc, n, i);
|
|
171
|
-
}
|
|
172
|
-
static {
|
|
173
|
-
this.code = e.Code.Calc;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
e.Calc = Q;
|
|
177
|
-
class O extends a {
|
|
178
|
-
constructor(n, i) {
|
|
179
|
-
super(e.Code.Busy, e.Label.Busy, n, i);
|
|
180
|
-
}
|
|
181
|
-
static {
|
|
182
|
-
this.code = e.Code.Busy;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
e.Busy = O;
|
|
186
|
-
class P extends a {
|
|
187
|
-
constructor(n, i) {
|
|
188
|
-
super(e.Code.Python, e.Label.Python, n, i);
|
|
189
|
-
}
|
|
190
|
-
static {
|
|
191
|
-
this.code = e.Code.Python;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
e.Python = P;
|
|
195
|
-
class Z extends a {
|
|
196
|
-
constructor(n, i) {
|
|
197
|
-
super(e.Code.Timeout, e.Label.Timeout, n, i);
|
|
198
|
-
}
|
|
199
|
-
static {
|
|
200
|
-
this.code = e.Code.Timeout;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
e.Timeout = Z;
|
|
204
|
-
})(r || (r = {}));
|
|
205
|
-
const f = {};
|
|
206
|
-
f[r.Code.Parse] = r.Parse, f[r.Code.Null] = r.Null, f[r.Code.Div0] = r.Div0, f[r.Code.Value] = r.Value, f[r.Code.Ref] = r.Ref, f[r.Code.Name] = r.Name, f[r.Code.Num] = r.Num, f[r.Code.NA] = r.NA, f[r.Code.GettingData] = r.GettingData, f[r.Code.Spill] = r.Spill, f[r.Code.Connect] = r.Connect, f[r.Code.Blocked] = r.Blocked, f[r.Code.Unknown] = r.Unknown, f[r.Code.Field] = r.Field, f[r.Code.Calc] = r.Calc, f[r.Code.Busy] = r.Busy, f[r.Code.Python] = r.Python, f[r.Code.Timeout] = r.Timeout;
|
|
207
|
-
const ce = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map(), le = Object.keys(f);
|
|
208
|
-
for (let e = 0; e < le.length; e++) {
|
|
209
|
-
const a = le[e], T = f[a];
|
|
210
|
-
de.set(r.Label[a], T), ue.set(r.Code[a], T);
|
|
211
|
-
const x = new T();
|
|
212
|
-
ce.set(x.getLabel(), x), ie.set(x.getCode(), x);
|
|
213
|
-
}
|
|
214
|
-
const ge = ie.get(r.Code.Unknown);
|
|
215
|
-
var p;
|
|
216
|
-
(p = r || (r = {})).BuiltIn = { Parse: new p.Parse(), Null: new p.Null(), Div0: new p.Div0(), Value: new p.Value(), Ref: new p.Ref(), Name: new p.Name(), Num: new p.Num(), NA: new p.NA(), GettingData: new p.GettingData(), Spill: new p.Spill(), Connect: new p.Connect(), Blocked: new p.Blocked(), Unknown: new p.Unknown(), Field: new p.Field(), Calc: new p.Calc(), Busy: new p.Busy(), Python: new p.Python(), Timeout: new p.Timeout() }, p.getBuiltInByLabel = (e) => ce.get(e), p.newTypedError = (e, a, T) => {
|
|
217
|
-
let x;
|
|
218
|
-
return x = typeof e == "string" ? de.get(e) : ue.get(e), x || (x = p.Unknown), new x(a, T);
|
|
219
|
-
}, p.getBuiltInById = (e) => ie.get(e) || ge;
|
|
220
|
-
let A = null, H = null;
|
|
221
|
-
const we = { compilerOptions: { target: "esnext" } }, Ce = async () => `
|
|
222
|
-
interface FirstTest {
|
|
223
|
-
isTrue?: boolean;
|
|
224
|
-
}
|
|
225
|
-
`, pe = /* @__PURE__ */ new Map([["IReferenceRange", "r"], ["IRange", "l"]]), me = /* @__PURE__ */ new Map([["IWorkbook", "workbook"], ["ISheet", "sheet"], ["ICellRanges", "ranges"], ["ICellRange", "range"], ["IFormulaContext", "context"]]), ne = (e, a) => {
|
|
226
|
-
Array.from(a.keys()).forEach((T) => {
|
|
227
|
-
const x = a.get(T);
|
|
228
|
-
a.set(`${e}.${T}`, x);
|
|
229
|
-
});
|
|
230
|
-
}, xe = /* @__PURE__ */ new Map([["Scalar", "*"], ["FormulaError.Known", "e"], ["Date", "Date"], ["JSON", "JSON"]]), be = /* @__PURE__ */ new Map([]), oe = "SheetXL";
|
|
231
|
-
ne(oe, pe), ne(oe, me), ne(oe, be);
|
|
232
|
-
const ke = /* @__PURE__ */ new Map([["Promise", () => ({ async: !0 })], ["Observable", () => ({ stream: !0 })]]);
|
|
233
|
-
let W = null;
|
|
234
|
-
async function Te() {
|
|
235
|
-
if (W) return W;
|
|
236
|
-
try {
|
|
237
|
-
return await (await import("./KUyPDaQO4D8lwO7O.js")).initialize();
|
|
238
|
-
} catch (e) {
|
|
239
|
-
throw W = null, e;
|
|
240
|
-
} finally {
|
|
241
|
-
W = null;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
async function Se(e) {
|
|
245
|
-
const a = e?.source ?? null;
|
|
246
|
-
if (!a) return null;
|
|
247
|
-
const T = (e.disableBundle || e.declarationsOnly) ?? !1, x = [Ce(), Te()], j = await Promise.all(x), X = j[0], s = j[1];
|
|
248
|
-
let K = "", U = null;
|
|
249
|
-
const z = [], Y = { allowJs: !0, declaration: !1, sourceMap: !1, inlineSourceMap: !1, inlineSources: !1, isolatedModules: !0, preserveConstEnums: !1, module: 99, noResolve: !0, emitDeclarationOnly: !1, target: s.ScriptTarget.ES2020 }, M = "script", I = `${M}.ts`, G = "lib.d.ts", _ = "global.d.ts", F = { [I]: a, [G]: `
|
|
250
|
-
/**
|
|
251
|
-
* Represents the completion of an asynchronous operation
|
|
252
|
-
*/
|
|
253
|
-
interface Promise<T> {
|
|
254
|
-
/**
|
|
255
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
256
|
-
* resolved value cannot be modified from the callback.
|
|
257
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
258
|
-
* @returns A Promise for the completion of the callback.
|
|
259
|
-
*/
|
|
260
|
-
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
261
|
-
}
|
|
262
|
-
`, [_]: X }, Q = { getSourceFile: (t, d, E, l) => s.createSourceFile(t, F[t], s.ScriptTarget.Latest, !0), fileExists: (t) => F[t] !== void 0, readFile: (t) => F[t], writeFile: (t, d) => {
|
|
263
|
-
F[t] = d;
|
|
264
|
-
}, getCurrentDirectory: () => "./", getCanonicalFileName: (t) => t, useCaseSensitiveFileNames: () => !0, getDefaultLibFileName: (t) => G, getNewLine: () => `
|
|
265
|
-
` }, O = s.createProgram([I, _], Y, Q), P = O.getTypeChecker(), Z = O.getSourceFile(I), y = O.emit();
|
|
266
|
-
y.diagnostics.length > 0 && console.warn(y.diagnostics), K = F[`${M}.js`];
|
|
267
|
-
const n = (t, d, E, l) => {
|
|
268
|
-
if (t) {
|
|
269
|
-
if (t.kind === s.SyntaxKind.NumberKeyword) d.scalar = "n";
|
|
270
|
-
else if (t.kind === s.SyntaxKind.StringKeyword) d.scalar = "s";
|
|
271
|
-
else if (t.kind === s.SyntaxKind.BooleanKeyword) d.scalar = "b";
|
|
272
|
-
else if (t.kind === s.SyntaxKind.UndefinedKeyword || t.kind === s.SyntaxKind.NullKeyword || t.kind === s.SyntaxKind.VoidKeyword) {
|
|
273
|
-
if (l) return void S(t, new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));
|
|
274
|
-
d.scalar = "z";
|
|
275
|
-
} else if (t.kind === s.SyntaxKind.BigIntKeyword) d.scalar = "n";
|
|
276
|
-
else if (t.kind === s.SyntaxKind.AnyKeyword) d.scalar = "z";
|
|
277
|
-
else if (t.kind === s.SyntaxKind.ArrayType) {
|
|
278
|
-
const c = t.elementType;
|
|
279
|
-
if (!c) return void S(t, new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));
|
|
280
|
-
d.arrayDepth = (d.arrayDepth ?? 0) + 1, n(c, d, E, l);
|
|
281
|
-
} else if (t.kind !== s.SyntaxKind.TupleType && t.kind === s.SyntaxKind.TypeReference) {
|
|
282
|
-
const c = t.typeName?.getText?.() ?? null, N = pe.get(c);
|
|
283
|
-
let k = !1;
|
|
284
|
-
N && (d.range = N, k = !0);
|
|
285
|
-
const D = xe.get(c);
|
|
286
|
-
if (D && (d.scalar = D), D !== void 0 && (k = !0), l) {
|
|
287
|
-
const g = me.get(c);
|
|
288
|
-
if (g) return g;
|
|
289
|
-
} else {
|
|
290
|
-
const g = ke.get(c);
|
|
291
|
-
if (g) {
|
|
292
|
-
const m = { ...d, ...g() };
|
|
293
|
-
let o = 0;
|
|
294
|
-
if (m.async && o++, m.stream && o++, o > 1) return void S(t, new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));
|
|
295
|
-
d = m, k = !0;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if (!k) return void S("node", new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));
|
|
299
|
-
const b = t.typeArguments;
|
|
300
|
-
if (b) {
|
|
301
|
-
if (b.length !== 1) return void S(t, new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));
|
|
302
|
-
n(b[0], d, E, l);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
} else S(t, new Error(`Type is not defined for '${d?.name ?? "return"}'.`));
|
|
306
|
-
}, i = [], S = (t, d) => {
|
|
307
|
-
i.push(d);
|
|
308
|
-
};
|
|
309
|
-
if (s.forEachChild(Z, (t) => {
|
|
310
|
-
if (E = t, (s.getCombinedModifierFlags(E) & s.ModifierFlags.Export) !== 0 && s.isFunctionDeclaration(t)) {
|
|
311
|
-
const l = {}, c = { parameters: {} }, N = t?.name?.getText();
|
|
312
|
-
try {
|
|
313
|
-
l.name = N;
|
|
314
|
-
const k = P.getSymbolAtLocation(t.name).getDocumentationComment(P);
|
|
315
|
-
if (k && k.length > 0 && k[0].text) {
|
|
316
|
-
let m = k[0].text;
|
|
317
|
-
m = m.replace(/[\r\n]+/g, "\\n").trim(), c.summary = m;
|
|
318
|
-
}
|
|
319
|
-
const D = {};
|
|
320
|
-
n(t.type, D, l, !1), l.returnType = D;
|
|
321
|
-
const b = {};
|
|
322
|
-
d = t, (s.getCombinedModifierFlags(d) & s.ModifierFlags.Default) !== 0 && (b.default = !0, U = N), Object.keys(b).length > 0 && (l.behavior = b), l.parameters = [];
|
|
323
|
-
const g = /* @__PURE__ */ new Map();
|
|
324
|
-
for (let m = 0; m < t.parameters.length; m++) {
|
|
325
|
-
const o = t.parameters[m], h = {};
|
|
326
|
-
h.name = o.name?.getText();
|
|
327
|
-
const $ = n(o.type, h, l, !0);
|
|
328
|
-
if ($) {
|
|
329
|
-
if (l.parameters.length !== 0) {
|
|
330
|
-
const B = t?.parent, C = B?.name?.getText();
|
|
331
|
-
return void S(t, new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`));
|
|
332
|
-
}
|
|
333
|
-
l.context = $;
|
|
334
|
-
continue;
|
|
335
|
-
}
|
|
336
|
-
let L;
|
|
337
|
-
if ((o.initializer !== void 0 && o.initializer !== null || o.questionToken !== void 0 && o.questionToken !== null) && (h.optional = !0, o.initializer)) try {
|
|
338
|
-
L = o.initializer.kind === s.SyntaxKind.StringLiteral ? o.initializer.text : o.initializer.kind === s.SyntaxKind.NumericLiteral ? parseFloat(o.initializer.text) : o.initializer.kind === s.SyntaxKind.TrueKeyword || o.initializer.kind === s.SyntaxKind.FalseKeyword ? o.initializer.kind === s.SyntaxKind.TrueKeyword : o.initializer.kind === s.SyntaxKind.NullKeyword ? null : o.initializer.kind === s.SyntaxKind.ObjectLiteralExpression || o.initializer.kind === s.SyntaxKind.ArrayLiteralExpression ? o.initializer.getText() : o.initializer.getText?.();
|
|
339
|
-
} catch (B) {
|
|
340
|
-
console.warn(`Couldn't extract default value for parameter '${h.name}'`, B);
|
|
341
|
-
}
|
|
342
|
-
o.dotDotDotToken && (h.rest = !0), l.parameters.push(h);
|
|
343
|
-
const w = { description: "" };
|
|
344
|
-
c.parameters[h.name] = w;
|
|
345
|
-
const u = P.getSymbolAtLocation(o.name).getDocumentationComment(P);
|
|
346
|
-
u && u.length > 0 && u[0].text && (w.description = u[0].text), L !== void 0 && (w.defaultValue = L), g.set(h.name, h);
|
|
347
|
-
}
|
|
348
|
-
if (t.jsDoc && t.jsDoc.length > 0) {
|
|
349
|
-
const m = t.jsDoc;
|
|
350
|
-
for (let o = 0; o < m.length; o++) {
|
|
351
|
-
const h = m[o]?.tags;
|
|
352
|
-
if (h) for (let $ = 0; $ < h.length; $++) {
|
|
353
|
-
const L = h[$];
|
|
354
|
-
let w = L?.tagName?.text;
|
|
355
|
-
if (!w) continue;
|
|
356
|
-
w = w.toLowerCase();
|
|
357
|
-
let u = L.comment;
|
|
358
|
-
const B = w === "hidden";
|
|
359
|
-
if ((typeof u == "string" || B) && (typeof u == "string" && (u = u.replace(/[\r\n]+/g, "\\n").trim()), B || !u || (u = u.split(/\\n/)[0], u && u.length !== 0))) {
|
|
360
|
-
if (u && typeof u == "string") {
|
|
361
|
-
const C = /\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;
|
|
362
|
-
let v, R = u, V = [];
|
|
363
|
-
for (; (v = C.exec(u)) !== null; ) {
|
|
364
|
-
const [ee, te, ye, ae] = v, fe = [ye.trim()];
|
|
365
|
-
ae && fe.push(ae.trim());
|
|
366
|
-
}
|
|
367
|
-
u = R, V.length > 0 && w === "see" && (c.links || (c.links = []), c.links.push(...V));
|
|
368
|
-
}
|
|
369
|
-
if (w === "name") {
|
|
370
|
-
const C = u;
|
|
371
|
-
C !== N && (c.name = C);
|
|
372
|
-
} else if (w !== "description") {
|
|
373
|
-
if (w === "summary") {
|
|
374
|
-
const C = u;
|
|
375
|
-
C && (c.summary = C);
|
|
376
|
-
} else if (w === "param") {
|
|
377
|
-
const C = L.name?.text, v = g.get(C);
|
|
378
|
-
if (!v) {
|
|
379
|
-
i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));
|
|
380
|
-
continue;
|
|
381
|
-
}
|
|
382
|
-
if (L.typeExpression && L.typeExpression.type) try {
|
|
383
|
-
const R = L.typeExpression.type;
|
|
384
|
-
if (R.kind === s.SyntaxKind.UnionType) {
|
|
385
|
-
const V = [];
|
|
386
|
-
v.enums = V, R.types.forEach((ee) => {
|
|
387
|
-
if (ee.kind === s.SyntaxKind.LiteralType) {
|
|
388
|
-
const te = ee.literal.text;
|
|
389
|
-
te && V.push(te);
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
} catch (R) {
|
|
394
|
-
console.warn("Error parsing JSDoc type expression:", R);
|
|
395
|
-
}
|
|
396
|
-
} else if (w === "returns" || w === "return") l.returnType.description = u;
|
|
397
|
-
else if (w === "category") c.category = u;
|
|
398
|
-
else if (w === "hidden") {
|
|
399
|
-
let C = !0;
|
|
400
|
-
const v = u?.toLowerCase();
|
|
401
|
-
v === "false" ? C = !1 : v !== "true" && (C = u), C !== !1 && (c.hidden = C ?? !0);
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
Object.keys(l.returnType).length === 0 && delete l.returnType, z.push([l, c]);
|
|
409
|
-
} catch (k) {
|
|
410
|
-
S(t, new Error(`'${N}': ${k.message}`));
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
var d, E;
|
|
414
|
-
}), i.length > 0) throw console.warn(i), new Error("There were compilation errors.", { cause: i });
|
|
415
|
-
if (z.length === 0) throw new Error("No exported functions.");
|
|
416
|
-
const J = `${he.uuidV4()}-script`;
|
|
417
|
-
try {
|
|
418
|
-
T || i.length !== 0 || (K = await async function(t, d, E = "/script.js", l = "__SHEETXL") {
|
|
419
|
-
try {
|
|
420
|
-
const c = await async function() {
|
|
421
|
-
if (A) return A;
|
|
422
|
-
if (H) {
|
|
423
|
-
if (await H, !A) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
424
|
-
return A;
|
|
425
|
-
}
|
|
426
|
-
let g, m;
|
|
427
|
-
H = new Promise((o, h) => {
|
|
428
|
-
g = o, m = h;
|
|
429
|
-
});
|
|
430
|
-
try {
|
|
431
|
-
const { initialize: o } = await import("./2vIB3gG-Ct-P7aHY.js");
|
|
432
|
-
return A = await o(), g(), A;
|
|
433
|
-
} catch (o) {
|
|
434
|
-
throw console.error("Failed to import or initialize esbuild:", o), H = null, m(o), o;
|
|
435
|
-
}
|
|
436
|
-
}(), N = "@sheetxl/primitives", k = `
|
|
437
|
-
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
438
|
-
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
439
|
-
export const Observable = globalThis.${l}?.Observable;
|
|
440
|
-
export const IRange = globalThis.${l}?.IRange;
|
|
441
|
-
export const FormulaError = globalThis.${l}?.FormulaError;
|
|
442
|
-
// Add more exports as needed
|
|
443
|
-
`, D = { name: "sheetxl-esbuild-in-memory", setup(g) {
|
|
444
|
-
const m = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
445
|
-
g.onResolve({ filter: new RegExp(`^(${E.replace("/", "\\/")}|${N})$`) }, (o) => ({ path: o.path, namespace: m })), g.onResolve({ filter: /.*/ }, (o) => {
|
|
446
|
-
if (o.namespace !== m) return console.warn(`esbuild: Treating import "${o.path}" as external.`), { path: o.path, external: !0 };
|
|
447
|
-
}), g.onLoad({ filter: /.*/, namespace: m }, (o) => {
|
|
448
|
-
let h;
|
|
449
|
-
if (o.path === E) h = d;
|
|
450
|
-
else {
|
|
451
|
-
if (o.path !== N) return { errors: [{ text: `Cannot load unknown path in ${m}: ${o.path}` }] };
|
|
452
|
-
h = k;
|
|
453
|
-
}
|
|
454
|
-
return { contents: h, loader: "ts" };
|
|
455
|
-
});
|
|
456
|
-
} }, b = await c.build({ entryPoints: [E], bundle: !0, write: !1, format: "esm", plugins: [D], sourcemap: "inline", tsconfigRaw: we, minify: !0, platform: "neutral" });
|
|
457
|
-
if (b.outputFiles && b.outputFiles.length > 0) return b.outputFiles[0].text;
|
|
458
|
-
throw b.errors && b.errors.length > 0 ? new Error(`esbuild bundling failed: ${b.errors.map((g) => g.text).join(`
|
|
459
|
-
`)}`) : new Error("esbuild did not produce an output file.");
|
|
460
|
-
} catch (c) {
|
|
461
|
-
throw console.error("esbuild bundling process failed:", c), c;
|
|
462
|
-
}
|
|
463
|
-
}(0, K, M));
|
|
464
|
-
} catch {
|
|
465
|
-
console.warn("Error bundling script");
|
|
466
|
-
}
|
|
467
|
-
const re = { functions: z, commitId: J, source: a, name: "Script", language: "typescript", compiled: K };
|
|
468
|
-
return U && (re.autoRun = U), re;
|
|
469
|
-
}
|
|
470
|
-
export {
|
|
471
|
-
Se as compileModule
|
|
472
|
-
};
|