@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
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/angular/README.md +1 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +50 -52
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +208 -223
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +13 -13
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +94 -97
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/viz-item-menu/index.cjs +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],parseValue:e=>e?"half":"full",toValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0,calculateValue:({options:e})=>{var l,r;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((r=e==null?void 0:e.display)==null?void 0:r.categoryLabels)===!0},toOptions:({options:e,value:l})=>({...e,display:{...e.display,legend:l,categoryLabels:!1}})}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],parseValue:e=>e?"labels":"list",toOptions:({options:e,value:l})=>({...e,display:{...e.display,categoryLabels:l==="labels",legend:l!=="labels"}})},visibleIf:({options:e})=>{var l,r;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((r=e==null?void 0:e.display)==null?void 0:r.categoryLabels)===!0}}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var r,a;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)=="number")return typeof((a=e==null?void 0:e.slices)==null?void 0:a.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,a;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)!="number"||typeof((a=e==null?void 0:e.slices)==null?void 0:a.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.roundedCorners)!==void 0&&delete l.slices.roundedCorners,{value:null,options:l}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var r,a;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)=="number")return typeof((a=e==null?void 0:e.slices)==null?void 0:a.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,a;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)!="number"||typeof((a=e==null?void 0:e.slices)==null?void 0:a.padding)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=u;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";const L=require("./localize-r7ALOUy_.cjs"),mr=require("./decompose-numeric-format-B3rVVHpO.cjs");function sr(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function me(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function cr(e){return e=me(Math.abs(e)),e?e[1]:NaN}function fr(e,r){return function(t,n){for(var i=t.length,u=[],m=0,T=e[0],D=0;i>0&&T>0&&(D+T+1>n&&(T=Math.max(1,n-D)),u.push(t.substring(i-=T,i+T)),!((D+=T+1)>n));)T=e[m=(m+1)%e.length];return u.reverse().join(r)}}function hr(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}var yr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ve(e){if(!(r=yr.exec(e)))throw new Error("invalid format: "+e);var r;return new Se({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}ve.prototype=Se.prototype;function Se(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gr(e){e:for(var r=e.length,t=1,n=-1,i;t<r;++t)switch(e[t]){case".":n=i=t;break;case"0":n===0&&(n=t),i=t;break;default:if(!+e[t])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ve;function dr(e,r){var t=me(e,r);if(!t)return e+"";var n=t[0],i=t[1],u=i-(Ve=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,m=n.length;return u===m?n:u>m?n+new Array(u-m+1).join("0"):u>0?n.slice(0,u)+"."+n.slice(u):"0."+new Array(1-u).join("0")+me(e,Math.max(0,r+u-1))[0]}function be(e,r){var t=me(e,r);if(!t)return e+"";var n=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const we={"%":(e,r)=>(e*100).toFixed(r),b:e=>Math.round(e).toString(2),c:e=>e+"",d:sr,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:e=>Math.round(e).toString(8),p:(e,r)=>be(e*100,r),r:be,s:dr,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fe(e){return e}var ke=Array.prototype.map,xe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mr(e){var r=e.grouping===void 0||e.thousands===void 0?Fe:fr(ke.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",u=e.numerals===void 0?Fe:hr(ke.call(e.numerals,String)),m=e.percent===void 0?"%":e.percent+"",T=e.minus===void 0?"−":e.minus+"",D=e.nan===void 0?"NaN":e.nan+"";function s(g){g=ve(g);var O=g.fill,l=g.align,h=g.sign,f=g.symbol,p=g.zero,c=g.width,F=g.comma,S=g.precision,w=g.trim,d=g.type;d==="n"?(F=!0,d="g"):we[d]||(S===void 0&&(S=12),w=!0,d="g"),(p||O==="0"&&l==="=")&&(p=!0,O="0",l="=");var b=f==="$"?t:f==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",oe=f==="$"?n:/[%p]/.test(d)?m:"",R=we[d],ye=/[defgprs%]/.test(d);S=S===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function ie(M){var q=b,A=oe,I,le,Z;if(d==="c")A=R(M)+A,M="";else{M=+M;var j=M<0||1/M<0;if(M=isNaN(M)?D:R(Math.abs(M),S),w&&(M=gr(M)),j&&+M==0&&h!=="+"&&(j=!1),q=(j?h==="("?h:T:h==="-"||h==="("?"":h)+q,A=(d==="s"?xe[8+Ve/3]:"")+A+(j&&h==="("?")":""),ye){for(I=-1,le=M.length;++I<le;)if(Z=M.charCodeAt(I),48>Z||Z>57){A=(Z===46?i+M.slice(I+1):M.slice(I))+A,M=M.slice(0,I);break}}}F&&!p&&(M=r(M,1/0));var B=q.length+M.length+A.length,H=B<c?new Array(c-B+1).join(O):"";switch(F&&p&&(M=r(H+M,H.length?c-A.length:1/0),H=""),l){case"<":M=q+M+A+H;break;case"=":M=q+H+M+A;break;case"^":M=H.slice(0,B=H.length>>1)+q+M+A+H.slice(B);break;default:M=H+q+M+A;break}return u(M)}return ie.toString=function(){return g+""},ie}function C(g,O){var l=s((g=ve(g),g.type="f",g)),h=Math.max(-8,Math.min(8,Math.floor(cr(O)/3)))*3,f=Math.pow(10,-h),p=xe[8+h/3];return function(c){return l(f*c)+p}}return{format:s,formatPrefix:C}}const ge=new Date,de=new Date;function x(e,r,t,n){function i(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return i.floor=u=>(e(u=new Date(+u)),u),i.ceil=u=>(e(u=new Date(u-1)),r(u,1),e(u),u),i.round=u=>{const m=i(u),T=i.ceil(u);return u-m<T-u?m:T},i.offset=(u,m)=>(r(u=new Date(+u),m==null?1:Math.floor(m)),u),i.range=(u,m,T)=>{const D=[];if(u=i.ceil(u),T=T==null?1:Math.floor(T),!(u<m)||!(T>0))return D;let s;do D.push(s=new Date(+u)),r(u,T),e(u);while(s<u&&u<m);return D},i.filter=u=>x(m=>{if(m>=m)for(;e(m),!u(m);)m.setTime(m-1)},(m,T)=>{if(m>=m)if(T<0)for(;++T<=0;)for(;r(m,-1),!u(m););else for(;--T>=0;)for(;r(m,1),!u(m););}),t&&(i.count=(u,m)=>(ge.setTime(+u),de.setTime(+m),e(ge),e(de),Math.floor(t(ge,de))),i.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?i.filter(n?m=>n(m)%u===0:m=>i.count(0,m)%u===0):i)),i}const ne=1e3,V=ne*60,ae=V*60,ue=ae*24,Qe=ue*7,Re=x(e=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*ne)},(e,r)=>(r-e)/ne,e=>e.getUTCSeconds());Re.range;const $e=x(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne)},(e,r)=>{e.setTime(+e+r*V)},(e,r)=>(r-e)/V,e=>e.getMinutes());$e.range;const Tr=x(e=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*V)},(e,r)=>(r-e)/V,e=>e.getUTCMinutes());Tr.range;const ze=x(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne-e.getMinutes()*V)},(e,r)=>{e.setTime(+e+r*ae)},(e,r)=>(r-e)/ae,e=>e.getHours());ze.range;const vr=x(e=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*ae)},(e,r)=>(r-e)/ae,e=>e.getUTCHours());vr.range;const fe=x(e=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*V)/ue,e=>e.getDate()-1);fe.range;const De=x(e=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/ue,e=>e.getUTCDate()-1);De.range;const Yr=x(e=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/ue,e=>Math.floor(e/ue));Yr.range;function G(e){return x(r=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,t)=>{r.setDate(r.getDate()+t*7)},(r,t)=>(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*V)/Qe)}const Ce=G(0),se=G(1),pr=G(2),Sr=G(3),X=G(4),Dr=G(5),Cr=G(6);Ce.range;se.range;pr.range;Sr.range;X.range;Dr.range;Cr.range;function P(e){return x(r=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCDate(r.getUTCDate()+t*7)},(r,t)=>(t-r)/Qe)}const Ge=P(0),ce=P(1),Ur=P(2),br=P(3),K=P(4),wr=P(5),Fr=P(6);Ge.range;ce.range;Ur.range;br.range;K.range;wr.range;Fr.range;const Pe=x(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Pe.range;const kr=x(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kr.range;const Q=x(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),e=>e.getFullYear());Q.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:x(r=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,t)=>{r.setFullYear(r.getFullYear()+t*e)});Q.range;const z=x(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());z.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:x(r=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCFullYear(r.getUTCFullYear()+t*e)});z.range;function Me(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Te(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ee(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function Ye(e){var r=e.dateTime,t=e.date,n=e.time,i=e.periods,u=e.days,m=e.shortDays,T=e.months,D=e.shortMonths,s=re(i),C=te(i),g=re(u),O=te(u),l=re(m),h=te(m),f=re(T),p=te(T),c=re(D),F=te(D),S={a:j,A:B,b:H,B:er,c:null,d:He,e:He,f:Xr,g:lt,G:st,H:jr,I:Br,j:Jr,L:Ze,m:Kr,M:et,p:rr,q:tr,Q:Ee,s:Ie,S:rt,u:tt,U:nt,V:at,w:ut,W:ot,x:null,X:null,y:it,Y:mt,Z:ct,"%":qe},w={a:nr,A:ar,b:ur,B:or,c:null,d:Oe,e:Oe,f:gt,g:Ut,G:wt,H:ft,I:ht,j:yt,L:Be,m:dt,M:Mt,p:ir,q:lr,Q:Ee,s:Ie,S:Tt,u:vt,U:Yt,V:pt,w:St,W:Dt,x:null,X:null,y:Ct,Y:bt,Z:Ft,"%":qe},d={a:ie,A:M,b:q,B:A,c:I,d:Ne,e:Ne,f:zr,g:_e,G:We,H:Le,I:Le,j:Vr,L:$r,m:Ir,M:Qr,p:ye,q:Er,Q:Pr,s:Zr,S:Rr,u:Nr,U:Lr,V:Hr,w:_r,W:Or,x:le,X:Z,y:_e,Y:We,Z:qr,"%":Gr};S.x=b(t,S),S.X=b(n,S),S.c=b(r,S),w.x=b(t,w),w.X=b(n,w),w.c=b(r,w);function b(o,y){return function(v){var a=[],W=-1,U=0,_=o.length,N,$,Ue;for(v instanceof Date||(v=new Date(+v));++W<_;)o.charCodeAt(W)===37&&(a.push(o.slice(U,W)),($=Ae[N=o.charAt(++W)])!=null?N=o.charAt(++W):$=N==="e"?" ":"0",(Ue=y[N])&&(N=Ue(v,$)),a.push(N),U=W+1);return a.push(o.slice(U,W)),a.join("")}}function oe(o,y){return function(v){var a=ee(1900,void 0,1),W=R(a,o,v+="",0),U,_;if(W!=v.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(a.s*1e3+("L"in a?a.L:0));if(y&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+a.p*12),a.m===void 0&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(U=Te(ee(a.y,0,1)),_=U.getUTCDay(),U=_>4||_===0?ce.ceil(U):ce(U),U=De.offset(U,(a.V-1)*7),a.y=U.getUTCFullYear(),a.m=U.getUTCMonth(),a.d=U.getUTCDate()+(a.w+6)%7):(U=Me(ee(a.y,0,1)),_=U.getDay(),U=_>4||_===0?se.ceil(U):se(U),U=fe.offset(U,(a.V-1)*7),a.y=U.getFullYear(),a.m=U.getMonth(),a.d=U.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),_="Z"in a?Te(ee(a.y,0,1)).getUTCDay():Me(ee(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+a.W*7-(_+5)%7:a.w+a.U*7-(_+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Te(a)):Me(a)}}function R(o,y,v,a){for(var W=0,U=y.length,_=v.length,N,$;W<U;){if(a>=_)return-1;if(N=y.charCodeAt(W++),N===37){if(N=y.charAt(W++),$=d[N in Ae?y.charAt(W++):N],!$||(a=$(o,v,a))<0)return-1}else if(N!=v.charCodeAt(a++))return-1}return a}function ye(o,y,v){var a=s.exec(y.slice(v));return a?(o.p=C.get(a[0].toLowerCase()),v+a[0].length):-1}function ie(o,y,v){var a=l.exec(y.slice(v));return a?(o.w=h.get(a[0].toLowerCase()),v+a[0].length):-1}function M(o,y,v){var a=g.exec(y.slice(v));return a?(o.w=O.get(a[0].toLowerCase()),v+a[0].length):-1}function q(o,y,v){var a=c.exec(y.slice(v));return a?(o.m=F.get(a[0].toLowerCase()),v+a[0].length):-1}function A(o,y,v){var a=f.exec(y.slice(v));return a?(o.m=p.get(a[0].toLowerCase()),v+a[0].length):-1}function I(o,y,v){return R(o,r,y,v)}function le(o,y,v){return R(o,t,y,v)}function Z(o,y,v){return R(o,n,y,v)}function j(o){return m[o.getDay()]}function B(o){return u[o.getDay()]}function H(o){return D[o.getMonth()]}function er(o){return T[o.getMonth()]}function rr(o){return i[+(o.getHours()>=12)]}function tr(o){return 1+~~(o.getMonth()/3)}function nr(o){return m[o.getUTCDay()]}function ar(o){return u[o.getUTCDay()]}function ur(o){return D[o.getUTCMonth()]}function or(o){return T[o.getUTCMonth()]}function ir(o){return i[+(o.getUTCHours()>=12)]}function lr(o){return 1+~~(o.getUTCMonth()/3)}return{format:function(o){var y=b(o+="",S);return y.toString=function(){return o},y},parse:function(o){var y=oe(o+="",!1);return y.toString=function(){return o},y},utcFormat:function(o){var y=b(o+="",w);return y.toString=function(){return o},y},utcParse:function(o){var y=oe(o+="",!0);return y.toString=function(){return o},y}}}var Ae={"-":"",_:" ",0:"0"},k=/^\s*\d+/,xr=/^%/,Ar=/[\\^$*+?|[\]().{}]/g;function Y(e,r,t){var n=e<0?"-":"",i=(n?-e:e)+"",u=i.length;return n+(u<t?new Array(t-u+1).join(r)+i:i)}function Wr(e){return e.replace(Ar,"\\$&")}function re(e){return new RegExp("^(?:"+e.map(Wr).join("|")+")","i")}function te(e){return new Map(e.map((r,t)=>[r.toLowerCase(),t]))}function _r(e,r,t){var n=k.exec(r.slice(t,t+1));return n?(e.w=+n[0],t+n[0].length):-1}function Nr(e,r,t){var n=k.exec(r.slice(t,t+1));return n?(e.u=+n[0],t+n[0].length):-1}function Lr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.U=+n[0],t+n[0].length):-1}function Hr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.V=+n[0],t+n[0].length):-1}function Or(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.W=+n[0],t+n[0].length):-1}function We(e,r,t){var n=k.exec(r.slice(t,t+4));return n?(e.y=+n[0],t+n[0].length):-1}function _e(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),t+n[0].length):-1}function qr(e,r,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function Er(e,r,t){var n=k.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function Ir(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function Ne(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function Vr(e,r,t){var n=k.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function Le(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function Qr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function Rr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function $r(e,r,t){var n=k.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function zr(e,r,t){var n=k.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function Gr(e,r,t){var n=xr.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function Pr(e,r,t){var n=k.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function Zr(e,r,t){var n=k.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function He(e,r){return Y(e.getDate(),r,2)}function jr(e,r){return Y(e.getHours(),r,2)}function Br(e,r){return Y(e.getHours()%12||12,r,2)}function Jr(e,r){return Y(1+fe.count(Q(e),e),r,3)}function Ze(e,r){return Y(e.getMilliseconds(),r,3)}function Xr(e,r){return Ze(e,r)+"000"}function Kr(e,r){return Y(e.getMonth()+1,r,2)}function et(e,r){return Y(e.getMinutes(),r,2)}function rt(e,r){return Y(e.getSeconds(),r,2)}function tt(e){var r=e.getDay();return r===0?7:r}function nt(e,r){return Y(Ce.count(Q(e)-1,e),r,2)}function je(e){var r=e.getDay();return r>=4||r===0?X(e):X.ceil(e)}function at(e,r){return e=je(e),Y(X.count(Q(e),e)+(Q(e).getDay()===4),r,2)}function ut(e){return e.getDay()}function ot(e,r){return Y(se.count(Q(e)-1,e),r,2)}function it(e,r){return Y(e.getFullYear()%100,r,2)}function lt(e,r){return e=je(e),Y(e.getFullYear()%100,r,2)}function mt(e,r){return Y(e.getFullYear()%1e4,r,4)}function st(e,r){var t=e.getDay();return e=t>=4||t===0?X(e):X.ceil(e),Y(e.getFullYear()%1e4,r,4)}function ct(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Y(r/60|0,"0",2)+Y(r%60,"0",2)}function Oe(e,r){return Y(e.getUTCDate(),r,2)}function ft(e,r){return Y(e.getUTCHours(),r,2)}function ht(e,r){return Y(e.getUTCHours()%12||12,r,2)}function yt(e,r){return Y(1+De.count(z(e),e),r,3)}function Be(e,r){return Y(e.getUTCMilliseconds(),r,3)}function gt(e,r){return Be(e,r)+"000"}function dt(e,r){return Y(e.getUTCMonth()+1,r,2)}function Mt(e,r){return Y(e.getUTCMinutes(),r,2)}function Tt(e,r){return Y(e.getUTCSeconds(),r,2)}function vt(e){var r=e.getUTCDay();return r===0?7:r}function Yt(e,r){return Y(Ge.count(z(e)-1,e),r,2)}function Je(e){var r=e.getUTCDay();return r>=4||r===0?K(e):K.ceil(e)}function pt(e,r){return e=Je(e),Y(K.count(z(e),e)+(z(e).getUTCDay()===4),r,2)}function St(e){return e.getUTCDay()}function Dt(e,r){return Y(ce.count(z(e)-1,e),r,2)}function Ct(e,r){return Y(e.getUTCFullYear()%100,r,2)}function Ut(e,r){return e=Je(e),Y(e.getUTCFullYear()%100,r,2)}function bt(e,r){return Y(e.getUTCFullYear()%1e4,r,4)}function wt(e,r){var t=e.getUTCDay();return e=t>=4||t===0?K(e):K.ceil(e),Y(e.getUTCFullYear()%1e4,r,4)}function Ft(){return"+0000"}function qe(){return"%"}function Ee(e){return+e}function Ie(e){return Math.floor(+e/1e3)}var J,E;kt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function kt(e){return J=Ye(e),E=J.format,J.parse,J.utcFormat,J.utcParse,J}const pe=[[1,4,12,52,365,365*24,365*24*60,365*24*60*60,365*24*60*60*1e3],[1/4,1,3,13,91,91*24,91*24*60,91*24*60*60,91*24*60*60*1e3],[1/12,1/3,1,4,30,30*24,30*24*60,30*24*60*60,30*24*60*60*1e3],[1/52,1/13,1/4,1,7,7*24,7*24*60,7*24*60*60,7*24*60*60*1e3],[1/365,1/91,1/30,1/7,1,24,24*60,24*60*60,24*60*60*1e3],[1/(365*24),1/(91*24),1/(30*24),1/(7*24),1/24,1,60,60*60,60*60*1e3],[1/(365*24*60),1/(91*24*60),1/(30*24*60),1/(7*24*60),1/(24*60),1/60,1,60,60*1e3],[1/(365*24*60*60),1/(91*24*60*60),1/(30*24*60*60),1/(7*24*60*60),1/(24*60*60),1/(60*60),1/60,1,1e3],[1/(365*24*60*60*1e3),1/(91*24*60*60*1e3),1/(30*24*60*60*1e3),1/(7*24*60*60*1e3),1/(24*60*60*1e3),1/(60*60*1e3),1/(60*1e3),1/1e3,1]];function xt(e,r,t){if(L.isEmpty(e))return;if(!r||!t||r===t)return e;const n=pe[r-1][t-1];if(n)return e*n}function At(e,r,t,n){if(L.isEmpty(e)||!r.lowestLevel||t.length===0)return"";const i=[];let u=0,m=Math.round(e*pe[r.lowestLevel-1][8]);const T=9;for(const[,s]of t.entries())if(e){m=m-u;const C=pe[s-1][T-1],g=Math.floor(m/C);u=g*C,i.push({level:s,value:g})}else i.push({level:s,value:0});let D="";for(const[s,C]of i.entries())if(r.duration.format==="time"){let g=C.value;[6,7,8].includes(C.level)&&C.value<10?g="0"+C.value.toString():C.level===9&&C.value<10?g="00"+C.value.toString():C.level===9&&C.value<100&&(g="0"+C.value.toString()),D+=(s===0?"":C.level===9?".":":")+g}else if(r.duration.format==="long"){const g=n.durationLongSuffix;D+=C.value+" "+g[C.level]+(s===i.length-1?"":" ")}else{const g=n.durationShortSuffix;D+=C.value+""+g[C.level]+(s===i.length-1?"":" ")}return D}const he={decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",dateSeparator:"/",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],levels:["All","Year","Quarter","Month","Week","Date","Hour","Minute","Second","Millisecond"],shortLevels:["All","Yr","Qtr","Mth","Wk","Date","Hr","Min","Sec","Msec"],durationLongSuffix:["","years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],durationShortSuffix:["","y","q","mo","w","d","h","m","s","ms"],multi:[".%L",":%S","%I:%M","%I %p","%a %d","W%G","%b %d","%B","%Y"]},Xe="%d-%m-%Y",Ke=[{key:"%a %e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%a %e %b %Y",monthType:"name",longText:!1,weekday:!0},{key:"%e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%e %b %Y",monthType:"name",longText:!1,weekday:!1},{key:"%a %e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%a %e %B %Y",monthType:"name",longText:!0,weekday:!0},{key:"%e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%e %B %Y",monthType:"name",longText:!0,weekday:!1},{key:"%d/%m/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"W%V/%G",lev5:"%d/%m/%Y",monthType:"number",mmdd:!1,separator:"/"},{key:"%d-%m-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"W%V-%G",lev5:"%d-%m-%Y",monthType:"number",mmdd:!1,separator:"-"},{key:"%d.%m.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"W%V.%G",lev5:"%d.%m.%Y",monthType:"number",mmdd:!1,separator:"."},{key:"%d~%m~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"W%V~%G",lev5:"%d~%m~%Y",monthType:"number",mmdd:!1,separator:"~"},{key:"%m/%d/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%m/%d/%Y",monthType:"number",mmdd:!0,separator:"/"},{key:"%m-%d-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%m-%d-%Y",monthType:"number",mmdd:!0,separator:"-"},{key:"%m.%d.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%m.%d.%Y",monthType:"number",mmdd:!0,separator:"."},{key:"%m~%d~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%m~%d~%Y",monthType:"number",mmdd:!0,separator:"~"},{key:"%amd/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%amd/%Y",monthType:"number",mmdd:null,separator:"/"},{key:"%amd-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%amd-%Y",monthType:"number",mmdd:null,separator:"-"},{key:"%amd.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%amd.%Y",monthType:"number",mmdd:null,separator:"."},{key:"%amd~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%amd~%Y",monthType:"number",mmdd:null,separator:"~"}],Wt=[{key:"%H:%M:%S.%L",lev6:"%H:00",lev7:"%H:%M",lev8:"%H:%M:%S",lev9:"%H:%M:%S.%L",ampm:!1},{key:"%I:%M:%S.%L %p",lev6:"%I:00 %p",lev7:"%I:%M %p",lev8:"%I:%M:%S %p",lev9:"%I:%M:%S.%L %p",ampm:!0}];function _t(e,r){var g,O;r=r||{};const t=r.localFormats||he;let n,i,u,m=[],T=[],D="datetime",s;r&&r.multi&&(D="datetime"),(!e||!e.format)&&(D="hierarchy"),e&&e.type&&(D=e.type),e&&e.format?s=e.format:D==="numeric"?s=",.0f":D==="datetime"?s=Xe:s="";const C=mr.decomposeNumericFormat(s);switch(C.precision&&C.typeFormat&&(D="numeric"),D){case"numeric":{if(e.subtype==="duration"&&e.duration&&e.duration.levels&&e.duration.levels.length>1&&!r.hideDuration)n=l=>L.isEmpty(l)?"":At(l,e,e.duration.levels,t);else{const l={...t};let h=C.typeFormat,f=!1;switch(h.length===2&&h.startsWith("a")&&(f=!0,h=h.slice(1,2),s=s.replace(/a/,"")),f?(l.decimal=t.decimal,l.thousands=t.thousands):["z","y","w"].includes(h)?(l.decimal=",",l.thousands="."):(l.decimal=".",l.thousands=","),h){case"z":{s=s.replace("z","f");break}case"y":{s=s.replace("y","%");break}case"w":{s=s.replace("w","s");break}}if((e==null?void 0:e.subtype)==="currency"&&e.currency){const c=" ",F=l.currency.findIndex(b=>b.length>0),S=l.currency[F].startsWith(c),w=l.currency[F].endsWith(c),d=`${S?c:""}${e.currency}${w?c:""}`;l.currency[F]=d}const p=Mr(l);h!=="%"&&(e==null?void 0:e.subtype)==="currency"&&e.currency&&l.currency&&!(r!=null&&r.hideCurrency)&&!["count","distinctcount"].includes(e.aggregationFunc)&&!(e.aggregationFunc==="rate"&&((g=e.aggregationWeight)==null?void 0:g.columnSubType)==="currency")&&((O=e.periodOverPeriod)==null?void 0:O.type)!=="percentageChange"&&(s="$"+s),r!=null&&r.trimZero&&["y","%"].includes(h)&&l.decimal===","?i=c=>p.format(s)(c).replace(/(,\d*?)0+%$/,"$1%").replace(/,%$/,"%"):r!=null&&r.trimZero&&["y","%"].includes(h)&&l.decimal==="."?i=c=>p.format(s)(c).replace(/(\.\d*?)0+%$/,"$1%").replace(/\.%$/,"%"):r!=null&&r.trimZero&&["z","f"].includes(h)&&l.decimal===","?i=c=>p.format(s)(c).replace(/(,\d*?)0+$/,"$1").replace(/,$/,""):r!=null&&r.trimZero&&["z","f"].includes(h)&&l.decimal==="."?i=c=>p.format(s)(c).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""):(e==null?void 0:e.subtype)==="currency"&&e.currency&&l.currency&&h==="s"?i=c=>p.format(s)(c).replace(/G/,"B"):i=L.isEmpty(C.precision)?p.format(",.0f"):p.format(s),n=c=>{var F;if(L.isEmpty(c))return"";if(e.subtype==="duration"&&e.duration&&!r.hideDuration){const S=e.duration.levels?e.duration.levels[0]:e.lowestLevel;return S!==e.lowestLevel&&(c=xt(c,e.lowestLevel,S)),i(c)+((F=t==null?void 0:t.durationShortSuffix)==null?void 0:F[S])}return i(c)}}break}case"datetime":{if(m=(t==null?void 0:t.smartDateFormats)??Ke,T=(t==null?void 0:t.smartTimeFormats)??Wt,L.isEmpty(e.datetimeDisplayMode)){if(r!=null&&r.level){const l=r.level,h=m.find(w=>s.includes(w.key)),f=T.find(w=>s.includes(w.key)),p=h?h["lev"+Math.min(l,5)]:m[0]["lev"+Math.min(l,5)],c=l>5?f?f["lev"+l]:T[0]["lev"+l]:"";s=l>5?p+", "+c:p;const F=s.includes("%amd")&&r.level>=5,S=h?r.level>=2&&h.separator==="~":!1;F?s=S?s.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),t.date.slice(0,8)):s.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),t.date.slice(0,8).replaceAll(new RegExp(/[.~\/-]/g),h.separator)):s=S?s.replaceAll(new RegExp(/[~]/g),t.dateSeparator):s}if(r!=null&&r.multi){const l=E(t.multi[0]),h=E(t.multi[1]),f=E(t.multi[2]),p=E(t.multi[3]),c=E(t.multi[4]),F=E(t.multi[6]),S=E(t.multi[7]),w=E(t.multi[8]);u=d=>{let b;return Re(d)<d?b=l:$e(d)<d?b=h:ze(d)<d?b=f:fe(d)<d?b=p:Pe(d)<d?b=Ce(d)<d?c:F:Q(d)<d?b=S:b=w,b(d)}}else u=Ye(t).format(s)}else{const l={quarter_number:{min:1,max:4},month_name:{min:1,max:12},month_number:{min:1,max:12},week_number:{min:1,max:53},day_in_month:{min:1,max:31},day_in_year:{min:1,max:366},weekday_name:{min:0,max:7},weekday_number:{min:0,max:7},hour_in_day:{min:0,max:23},minute_in_hour:{min:0,max:59},second_in_minute:{min:0,max:59}},h=(f,p,c)=>{var F,S,w,d,b;return p==="letter"?((F=f.shortNames)==null?void 0:F.length)>0&&((S=f.shortNames[c])==null?void 0:S.length)>0?(w=f.shortNames[c])==null?void 0:w.charAt(0):"N/A":p==="short"?((d=f.shortNames)==null?void 0:d.length)>0&&f.shortNames[c]?f.shortNames[c]:"N/A":((b=f.longNames)==null?void 0:b.length)>0&&f.longNames[c]?f.longNames[c]:"N/A"};["quarter_number","month_number","week_number","day_in_month","day_in_year","weekday_number","hour_in_day","minute_in_hour","second_in_minute"].includes(e.datetimeDisplayMode)?u=f=>L.isNumeric(f)&&f>=l[e.datetimeDisplayMode].min&&f<=l[e.datetimeDisplayMode].max?f:"N/A":e.datetimeDisplayMode==="month_name"?u=f=>{const p=[...t.shortMonths],c=[...t.months];return L.isNumeric(f)&&f>=l[e.datetimeDisplayMode].min&&f<=l[e.datetimeDisplayMode].max?h({shortNames:p,longNames:c},e.monthNameFormat,f-1):"N/A"}:e.datetimeDisplayMode==="weekday_name"?u=f=>{const p=[...t.shortDays],c=[...t.days];return e.weekStart==="monday"&&(p.push(p.shift()??""),c.push(c.shift()??"")),L.isNumeric(f)&&f>=l[e.datetimeDisplayMode].min&&f<=l[e.datetimeDisplayMode].max?h({shortNames:p,longNames:c},e.weekDayNameFormat,f-1):"N/A"}:u=Ye(t).format(s)}n=l=>{if(L.isEmpty(l))return"";const h=u(l);return L.isString(h)?h.trim():h};break}case"hierarchy":{n=l=>L.localize(l,r?r.locale:void 0);break}default:{n=l=>l;break}}return n}const Nt=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_DATETIME_FORMAT=Xe;exports.DEFAULT_LOCAL_FORMATS=he;exports.SMART_DATE_FORMATS=Ke;exports.en=Lt;exports.enUS=Nt;exports.formatter=_t;
|