@jackuait/blok 0.6.0-beta.13 → 0.6.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blok.mjs +2 -2
- package/dist/chunks/{blok-DzeTRJ_i.mjs → blok-Cl30YOLl.mjs} +1398 -1132
- package/dist/chunks/{i18next-loader-CgW4H90H.mjs → i18next-loader-DbTDlMux.mjs} +1 -1
- package/dist/chunks/{index-BWKk7PIS.mjs → index-DJmaYswj.mjs} +1 -1
- package/dist/chunks/{inline-tool-convert-DrSwadw_.mjs → inline-tool-convert-MjSaP8r7.mjs} +161 -145
- package/dist/{messages-B1Aww8q7.mjs → chunks/messages-1mYyrppy.mjs} +1 -0
- package/dist/chunks/{messages-DnIhyAJk.mjs → messages-4gHfbcDp.mjs} +1 -0
- package/dist/{messages-CQwpzUFp.mjs → chunks/messages-6xYv-U8A.mjs} +1 -0
- package/dist/chunks/{messages-CMkNSDTo.mjs → messages-7jqF79FO.mjs} +1 -0
- package/dist/chunks/{messages-BSbjsyHY.mjs → messages-B3EUuA7o.mjs} +1 -0
- package/dist/{messages-LPVfA-8K.mjs → chunks/messages-B6srtRn7.mjs} +1 -0
- package/dist/chunks/{messages-DJDG55Vq.mjs → messages-B85OIs0E.mjs} +1 -0
- package/dist/{messages-_ErNTNhk.mjs → chunks/messages-BCYBBG_u.mjs} +1 -0
- package/dist/{messages-CZygwLwM.mjs → chunks/messages-BDLNPiaW.mjs} +1 -0
- package/dist/{messages-C2htQ_3F.mjs → chunks/messages-BKpNd1Zb.mjs} +1 -0
- package/dist/chunks/{messages-CnwibSvh.mjs → messages-BLFUid_o.mjs} +1 -0
- package/dist/{messages-CVw84KdI.mjs → chunks/messages-BNPTVKnc.mjs} +1 -0
- package/dist/{messages-BMv4xwIr.mjs → chunks/messages-BQPXSkri.mjs} +1 -0
- package/dist/{messages-Dz9L52ol.mjs → chunks/messages-BQu6VNDq.mjs} +1 -0
- package/dist/{messages-DprmQg6V.mjs → chunks/messages-BRodFKUo.mjs} +1 -0
- package/dist/{messages-CznZadDf.mjs → chunks/messages-BWIikA8H.mjs} +1 -0
- package/dist/{messages-CqWJcCbY.mjs → chunks/messages-BXQvMilx.mjs} +1 -0
- package/dist/chunks/{messages-Z9nEU2xK.mjs → messages-BZ92luiw.mjs} +1 -0
- package/dist/chunks/{messages-BC86qLvI.mjs → messages-Bg0Phlcj.mjs} +1 -0
- package/dist/chunks/{messages-DnXLrlHh.mjs → messages-Bh6RBIu5.mjs} +1 -0
- package/dist/chunks/{messages-DhLKYm2j.mjs → messages-BnFHdIpg.mjs} +1 -0
- package/dist/{messages-BU2nlrLK.mjs → chunks/messages-Bq82EVsw.mjs} +1 -0
- package/dist/chunks/{messages-Diu6jAaR.mjs → messages-BxbcTiHh.mjs} +1 -0
- package/dist/{messages-BoJc_p1r.mjs → chunks/messages-ByO6bSV2.mjs} +1 -0
- package/dist/chunks/{messages-BrPFGbM-.mjs → messages-ByUNPiQ4.mjs} +1 -0
- package/dist/chunks/{messages-BB5z9Uba.mjs → messages-Byw0EHyf.mjs} +1 -0
- package/dist/chunks/{messages-D1Hv8XGo.mjs → messages-C-aP90zq.mjs} +1 -0
- package/dist/chunks/{messages-DBRw-7Zc.mjs → messages-C2f44jci.mjs} +1 -0
- package/dist/chunks/{messages-CJdUsQ-c.mjs → messages-CKYoAmm9.mjs} +1 -0
- package/dist/chunks/{messages-CvGLfqmV.mjs → messages-CSQJrJ_N.mjs} +1 -0
- package/dist/chunks/{messages-1fC8IMyX.mjs → messages-CX_o4Cgc.mjs} +1 -0
- package/dist/chunks/{messages-BdeLo0N9.mjs → messages-C_tfXllT.mjs} +1 -0
- package/dist/chunks/{messages-DBn76jVV.mjs → messages-Cj6TZ_By.mjs} +1 -0
- package/dist/{messages-CLhcMlTc.mjs → chunks/messages-CjdYkfzj.mjs} +1 -0
- package/dist/{messages-7W4d0DwD.mjs → chunks/messages-CmvWFWR6.mjs} +1 -0
- package/dist/{messages-CzTufCHu.mjs → chunks/messages-CnV-kxh6.mjs} +1 -0
- package/dist/chunks/{messages-BMXCuEKO.mjs → messages-CpuDfpdi.mjs} +1 -0
- package/dist/chunks/{messages-DT4dP5uK.mjs → messages-Cspe1oXk.mjs} +1 -0
- package/dist/{messages-D-ZtY5v0.mjs → chunks/messages-D2_d-Jt4.mjs} +1 -0
- package/dist/{messages-BELRf6DU.mjs → chunks/messages-DADSbW8l.mjs} +1 -0
- package/dist/chunks/{messages-O5tQus_0.mjs → messages-DHSeTQ4S.mjs} +1 -0
- package/dist/{messages-BFG6Wlgy.mjs → chunks/messages-DKeO2RsW.mjs} +1 -0
- package/dist/chunks/{messages-9SihnaXQ.mjs → messages-DLdlX_dY.mjs} +1 -0
- package/dist/chunks/{messages-BL0tXcDf.mjs → messages-DVxlJ4DU.mjs} +1 -0
- package/dist/chunks/{messages-CY8_RyFE.mjs → messages-DWSxENRk.mjs} +1 -0
- package/dist/{messages-Q7AO_FLv.mjs → chunks/messages-D_bVNZ12.mjs} +1 -0
- package/dist/chunks/{messages-BYyy6Wqf.mjs → messages-DdzjVwmG.mjs} +1 -0
- package/dist/chunks/{messages-DLfR5bMd.mjs → messages-DhyBKTi0.mjs} +1 -0
- package/dist/chunks/{messages-DvFLX36Q.mjs → messages-DlC9jDXa.mjs} +1 -0
- package/dist/chunks/{messages-D5C3J9qr.mjs → messages-DmBGk8ed.mjs} +1 -0
- package/dist/chunks/{messages-R3hUSvr3.mjs → messages-Dm_VqpU6.mjs} +1 -0
- package/dist/chunks/{messages-w7v1GNaE.mjs → messages-Dn9hI_ER.mjs} +1 -0
- package/dist/{messages-uKX8WBaD.mjs → chunks/messages-Dssp4AXT.mjs} +1 -0
- package/dist/chunks/{messages-Xq8UmkVs.mjs → messages-DzCc0JgS.mjs} +1 -0
- package/dist/chunks/{messages-JELdtT6E.mjs → messages-N6THNxo0.mjs} +1 -0
- package/dist/chunks/{messages-DqM1LFg5.mjs → messages-OctOxF2l.mjs} +1 -0
- package/dist/chunks/{messages-_ncGrKHh.mjs → messages-QT3JA95K.mjs} +1 -0
- package/dist/{messages-C9eaarcK.mjs → chunks/messages-QqWK83BF.mjs} +1 -0
- package/dist/chunks/{messages-BogRq8lt.mjs → messages-RsGaDzbb.mjs} +1 -0
- package/dist/chunks/{messages-Dzwxv9v1.mjs → messages-c7YlI6Wm.mjs} +1 -0
- package/dist/{messages-D5iv1Kox.mjs → chunks/messages-lZ8aF-4r.mjs} +1 -0
- package/dist/chunks/{messages-7QoX8DkW.mjs → messages-uGDrchjb.mjs} +1 -0
- package/dist/chunks/{messages-CKI54h6O.mjs → messages-xc2yNvog.mjs} +1 -0
- package/dist/{messages-Bmu_S7GM.mjs → chunks/messages-y5Q-ymIx.mjs} +1 -0
- package/dist/{messages-BWF-zUpY.mjs → chunks/messages-yJnyedAd.mjs} +1 -0
- package/dist/{messages-kep5wtm4.mjs → chunks/messages-yQ_4upHh.mjs} +1 -0
- package/dist/chunks/{messages-C99mq906.mjs → messages-ysbWD56Q.mjs} +1 -0
- package/dist/full.mjs +2 -2
- package/dist/locales.mjs +68 -67
- package/dist/{chunks/messages-B1Aww8q7.mjs → messages-1mYyrppy.mjs} +1 -0
- package/dist/{messages-DnIhyAJk.mjs → messages-4gHfbcDp.mjs} +1 -0
- package/dist/{chunks/messages-CQwpzUFp.mjs → messages-6xYv-U8A.mjs} +1 -0
- package/dist/{messages-CMkNSDTo.mjs → messages-7jqF79FO.mjs} +1 -0
- package/dist/{messages-BSbjsyHY.mjs → messages-B3EUuA7o.mjs} +1 -0
- package/dist/{chunks/messages-LPVfA-8K.mjs → messages-B6srtRn7.mjs} +1 -0
- package/dist/{messages-DJDG55Vq.mjs → messages-B85OIs0E.mjs} +1 -0
- package/dist/{chunks/messages-_ErNTNhk.mjs → messages-BCYBBG_u.mjs} +1 -0
- package/dist/{chunks/messages-CZygwLwM.mjs → messages-BDLNPiaW.mjs} +1 -0
- package/dist/{chunks/messages-C2htQ_3F.mjs → messages-BKpNd1Zb.mjs} +1 -0
- package/dist/{messages-CnwibSvh.mjs → messages-BLFUid_o.mjs} +1 -0
- package/dist/{chunks/messages-CVw84KdI.mjs → messages-BNPTVKnc.mjs} +1 -0
- package/dist/{chunks/messages-BMv4xwIr.mjs → messages-BQPXSkri.mjs} +1 -0
- package/dist/{chunks/messages-Dz9L52ol.mjs → messages-BQu6VNDq.mjs} +1 -0
- package/dist/{chunks/messages-DprmQg6V.mjs → messages-BRodFKUo.mjs} +1 -0
- package/dist/{chunks/messages-CznZadDf.mjs → messages-BWIikA8H.mjs} +1 -0
- package/dist/{chunks/messages-CqWJcCbY.mjs → messages-BXQvMilx.mjs} +1 -0
- package/dist/{messages-Z9nEU2xK.mjs → messages-BZ92luiw.mjs} +1 -0
- package/dist/{messages-BC86qLvI.mjs → messages-Bg0Phlcj.mjs} +1 -0
- package/dist/{messages-DnXLrlHh.mjs → messages-Bh6RBIu5.mjs} +1 -0
- package/dist/{messages-DhLKYm2j.mjs → messages-BnFHdIpg.mjs} +1 -0
- package/dist/{chunks/messages-BU2nlrLK.mjs → messages-Bq82EVsw.mjs} +1 -0
- package/dist/{messages-Diu6jAaR.mjs → messages-BxbcTiHh.mjs} +1 -0
- package/dist/{chunks/messages-BoJc_p1r.mjs → messages-ByO6bSV2.mjs} +1 -0
- package/dist/{messages-BrPFGbM-.mjs → messages-ByUNPiQ4.mjs} +1 -0
- package/dist/{messages-BB5z9Uba.mjs → messages-Byw0EHyf.mjs} +1 -0
- package/dist/{messages-D1Hv8XGo.mjs → messages-C-aP90zq.mjs} +1 -0
- package/dist/{messages-DBRw-7Zc.mjs → messages-C2f44jci.mjs} +1 -0
- package/dist/{messages-CJdUsQ-c.mjs → messages-CKYoAmm9.mjs} +1 -0
- package/dist/{messages-CvGLfqmV.mjs → messages-CSQJrJ_N.mjs} +1 -0
- package/dist/{messages-1fC8IMyX.mjs → messages-CX_o4Cgc.mjs} +1 -0
- package/dist/{messages-BdeLo0N9.mjs → messages-C_tfXllT.mjs} +1 -0
- package/dist/{messages-DBn76jVV.mjs → messages-Cj6TZ_By.mjs} +1 -0
- package/dist/{chunks/messages-CLhcMlTc.mjs → messages-CjdYkfzj.mjs} +1 -0
- package/dist/{chunks/messages-7W4d0DwD.mjs → messages-CmvWFWR6.mjs} +1 -0
- package/dist/{chunks/messages-CzTufCHu.mjs → messages-CnV-kxh6.mjs} +1 -0
- package/dist/{messages-BMXCuEKO.mjs → messages-CpuDfpdi.mjs} +1 -0
- package/dist/{messages-DT4dP5uK.mjs → messages-Cspe1oXk.mjs} +1 -0
- package/dist/{chunks/messages-D-ZtY5v0.mjs → messages-D2_d-Jt4.mjs} +1 -0
- package/dist/{chunks/messages-BELRf6DU.mjs → messages-DADSbW8l.mjs} +1 -0
- package/dist/{messages-O5tQus_0.mjs → messages-DHSeTQ4S.mjs} +1 -0
- package/dist/{chunks/messages-BFG6Wlgy.mjs → messages-DKeO2RsW.mjs} +1 -0
- package/dist/{messages-9SihnaXQ.mjs → messages-DLdlX_dY.mjs} +1 -0
- package/dist/{messages-BL0tXcDf.mjs → messages-DVxlJ4DU.mjs} +1 -0
- package/dist/{messages-CY8_RyFE.mjs → messages-DWSxENRk.mjs} +1 -0
- package/dist/{chunks/messages-Q7AO_FLv.mjs → messages-D_bVNZ12.mjs} +1 -0
- package/dist/{messages-BYyy6Wqf.mjs → messages-DdzjVwmG.mjs} +1 -0
- package/dist/{messages-DLfR5bMd.mjs → messages-DhyBKTi0.mjs} +1 -0
- package/dist/{messages-DvFLX36Q.mjs → messages-DlC9jDXa.mjs} +1 -0
- package/dist/{messages-D5C3J9qr.mjs → messages-DmBGk8ed.mjs} +1 -0
- package/dist/{messages-R3hUSvr3.mjs → messages-Dm_VqpU6.mjs} +1 -0
- package/dist/{messages-w7v1GNaE.mjs → messages-Dn9hI_ER.mjs} +1 -0
- package/dist/{chunks/messages-uKX8WBaD.mjs → messages-Dssp4AXT.mjs} +1 -0
- package/dist/{messages-Xq8UmkVs.mjs → messages-DzCc0JgS.mjs} +1 -0
- package/dist/{messages-JELdtT6E.mjs → messages-N6THNxo0.mjs} +1 -0
- package/dist/{messages-DqM1LFg5.mjs → messages-OctOxF2l.mjs} +1 -0
- package/dist/{messages-_ncGrKHh.mjs → messages-QT3JA95K.mjs} +1 -0
- package/dist/{chunks/messages-C9eaarcK.mjs → messages-QqWK83BF.mjs} +1 -0
- package/dist/{messages-BogRq8lt.mjs → messages-RsGaDzbb.mjs} +1 -0
- package/dist/{messages-Dzwxv9v1.mjs → messages-c7YlI6Wm.mjs} +1 -0
- package/dist/{chunks/messages-D5iv1Kox.mjs → messages-lZ8aF-4r.mjs} +1 -0
- package/dist/{messages-7QoX8DkW.mjs → messages-uGDrchjb.mjs} +1 -0
- package/dist/{messages-CKI54h6O.mjs → messages-xc2yNvog.mjs} +1 -0
- package/dist/{chunks/messages-Bmu_S7GM.mjs → messages-y5Q-ymIx.mjs} +1 -0
- package/dist/{chunks/messages-BWF-zUpY.mjs → messages-yJnyedAd.mjs} +1 -0
- package/dist/{chunks/messages-kep5wtm4.mjs → messages-yQ_4upHh.mjs} +1 -0
- package/dist/{messages-C99mq906.mjs → messages-ysbWD56Q.mjs} +1 -0
- package/dist/tools.mjs +887 -701
- package/package.json +2 -1
- package/src/components/block/style-manager.ts +5 -1
- package/src/components/blocks.ts +109 -9
- package/src/components/i18n/locales/am/messages.json +1 -0
- package/src/components/i18n/locales/ar/messages.json +1 -0
- package/src/components/i18n/locales/az/messages.json +1 -0
- package/src/components/i18n/locales/bg/messages.json +1 -0
- package/src/components/i18n/locales/bn/messages.json +1 -0
- package/src/components/i18n/locales/bs/messages.json +1 -0
- package/src/components/i18n/locales/cs/messages.json +1 -0
- package/src/components/i18n/locales/da/messages.json +1 -0
- package/src/components/i18n/locales/de/messages.json +1 -0
- package/src/components/i18n/locales/dv/messages.json +1 -0
- package/src/components/i18n/locales/el/messages.json +1 -0
- package/src/components/i18n/locales/en/messages.json +1 -0
- package/src/components/i18n/locales/es/messages.json +1 -0
- package/src/components/i18n/locales/et/messages.json +1 -0
- package/src/components/i18n/locales/fa/messages.json +1 -0
- package/src/components/i18n/locales/fi/messages.json +1 -0
- package/src/components/i18n/locales/fil/messages.json +1 -0
- package/src/components/i18n/locales/fr/messages.json +1 -0
- package/src/components/i18n/locales/gu/messages.json +1 -0
- package/src/components/i18n/locales/he/messages.json +1 -0
- package/src/components/i18n/locales/hi/messages.json +1 -0
- package/src/components/i18n/locales/hr/messages.json +1 -0
- package/src/components/i18n/locales/hu/messages.json +1 -0
- package/src/components/i18n/locales/hy/messages.json +1 -0
- package/src/components/i18n/locales/id/messages.json +1 -0
- package/src/components/i18n/locales/it/messages.json +1 -0
- package/src/components/i18n/locales/ja/messages.json +1 -0
- package/src/components/i18n/locales/ka/messages.json +1 -0
- package/src/components/i18n/locales/km/messages.json +1 -0
- package/src/components/i18n/locales/kn/messages.json +1 -0
- package/src/components/i18n/locales/ko/messages.json +1 -0
- package/src/components/i18n/locales/ku/messages.json +1 -0
- package/src/components/i18n/locales/lo/messages.json +1 -0
- package/src/components/i18n/locales/lt/messages.json +1 -0
- package/src/components/i18n/locales/lv/messages.json +1 -0
- package/src/components/i18n/locales/mk/messages.json +1 -0
- package/src/components/i18n/locales/ml/messages.json +1 -0
- package/src/components/i18n/locales/mn/messages.json +1 -0
- package/src/components/i18n/locales/mr/messages.json +1 -0
- package/src/components/i18n/locales/ms/messages.json +1 -0
- package/src/components/i18n/locales/my/messages.json +1 -0
- package/src/components/i18n/locales/ne/messages.json +1 -0
- package/src/components/i18n/locales/nl/messages.json +1 -0
- package/src/components/i18n/locales/no/messages.json +1 -0
- package/src/components/i18n/locales/pa/messages.json +1 -0
- package/src/components/i18n/locales/pl/messages.json +1 -0
- package/src/components/i18n/locales/ps/messages.json +1 -0
- package/src/components/i18n/locales/pt/messages.json +1 -0
- package/src/components/i18n/locales/ro/messages.json +1 -0
- package/src/components/i18n/locales/ru/messages.json +1 -0
- package/src/components/i18n/locales/sd/messages.json +1 -0
- package/src/components/i18n/locales/si/messages.json +1 -0
- package/src/components/i18n/locales/sk/messages.json +1 -0
- package/src/components/i18n/locales/sl/messages.json +1 -0
- package/src/components/i18n/locales/sq/messages.json +1 -0
- package/src/components/i18n/locales/sr/messages.json +1 -0
- package/src/components/i18n/locales/sv/messages.json +1 -0
- package/src/components/i18n/locales/sw/messages.json +1 -0
- package/src/components/i18n/locales/ta/messages.json +1 -0
- package/src/components/i18n/locales/te/messages.json +1 -0
- package/src/components/i18n/locales/th/messages.json +1 -0
- package/src/components/i18n/locales/tr/messages.json +1 -0
- package/src/components/i18n/locales/ug/messages.json +1 -0
- package/src/components/i18n/locales/uk/messages.json +1 -0
- package/src/components/i18n/locales/ur/messages.json +1 -0
- package/src/components/i18n/locales/vi/messages.json +1 -0
- package/src/components/i18n/locales/yi/messages.json +1 -0
- package/src/components/i18n/locales/zh/messages.json +1 -0
- package/src/components/icons/index.ts +8 -0
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +51 -10
- package/src/components/modules/blockEvents/index.ts +2 -5
- package/src/components/modules/blockManager/blockManager.ts +10 -0
- package/src/components/modules/blockManager/operations.ts +11 -0
- package/src/components/modules/blockManager/repository.ts +22 -0
- package/src/components/modules/blockManager/yjs-sync.ts +148 -31
- package/src/components/modules/crossBlockSelection.ts +11 -3
- package/src/components/modules/drag/preview/DragPreview.ts +8 -0
- package/src/components/modules/drag/target/DropTargetDetector.ts +100 -11
- package/src/components/modules/paste/handlers/base.ts +3 -4
- package/src/components/modules/paste/index.ts +1 -1
- package/src/components/modules/rectangleSelection.ts +5 -2
- package/src/components/modules/toolbar/blockSettings.ts +52 -44
- package/src/components/modules/toolbar/index.ts +27 -7
- package/src/components/modules/toolbar/inline/index.ts +1 -1
- package/src/components/modules/uiControllers/controllers/blockHover.ts +16 -2
- package/src/components/modules/uiControllers/handlers/touch.ts +83 -10
- package/src/components/modules/yjs/block-observer.ts +9 -3
- package/src/components/modules/yjs/document-store.ts +4 -2
- package/src/components/modules/yjs/types.ts +8 -6
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +6 -4
- package/src/components/utils/popover/popover-desktop.ts +12 -0
- package/src/stories/Popover.stories.ts +0 -2
- package/src/styles/main.css +9 -1
- package/src/tools/list/caret-manager.ts +28 -10
- package/src/tools/table/index.ts +180 -37
- package/src/tools/table/table-add-controls.ts +51 -14
- package/src/tools/table/table-cell-blocks.ts +41 -2
- package/src/tools/table/table-cell-selection.ts +27 -1
- package/src/tools/table/table-operations.ts +12 -15
- package/src/tools/table/table-row-col-controls.ts +69 -6
- package/src/tools/table/table-scroll-haze.ts +152 -0
|
@@ -281,14 +281,14 @@ const u = {
|
|
|
281
281
|
DELETE: 46
|
|
282
282
|
}, po = {
|
|
283
283
|
LEFT: 0
|
|
284
|
-
}, uo = 650, re = () => "0.6.0-beta.
|
|
284
|
+
}, uo = 650, re = () => "0.6.0-beta.14";
|
|
285
285
|
var ae = /* @__PURE__ */ ((s) => (s.VERBOSE = "VERBOSE", s.INFO = "INFO", s.WARN = "WARN", s.ERROR = "ERROR", s))(ae || {});
|
|
286
|
-
const
|
|
286
|
+
const Y = (s, t, e = "log", o, n = "color: inherit") => {
|
|
287
287
|
const i = typeof console == "undefined" ? void 0 : console;
|
|
288
288
|
if (!i || typeof i[e] != "function")
|
|
289
289
|
return;
|
|
290
290
|
const r = ["info", "log", "warn", "error"].includes(e), a = [];
|
|
291
|
-
switch (
|
|
291
|
+
switch (Y.logLevel) {
|
|
292
292
|
case "VERBOSE":
|
|
293
293
|
break;
|
|
294
294
|
case "ERROR":
|
|
@@ -320,13 +320,13 @@ const J = (s, t, e = "log", o, n = "color: inherit") => {
|
|
|
320
320
|
} catch (d) {
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
|
-
|
|
323
|
+
Y.logLevel = "VERBOSE";
|
|
324
324
|
const fo = (s) => {
|
|
325
|
-
|
|
325
|
+
Y.logLevel = s;
|
|
326
326
|
}, nt = (s, t = "log", e, o) => {
|
|
327
|
-
|
|
327
|
+
Y(!1, s, t, e, o);
|
|
328
328
|
}, go = (s, t = "log", e, o) => {
|
|
329
|
-
|
|
329
|
+
Y(!0, s, t, e, o);
|
|
330
330
|
}, w = (s) => typeof s == "function", k = (s) => {
|
|
331
331
|
if (s === null || typeof s != "object")
|
|
332
332
|
return !1;
|
|
@@ -1236,8 +1236,7 @@ class qt {
|
|
|
1236
1236
|
this.subscribers = {};
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
const Bo = 180, Ho = 400, Fo = "blok", Po = "inline-toolbar", pt = "tooltip", $o = "[data-blok-interface=inline-toolbar]";
|
|
1240
|
-
typeof process != "undefined" ? process.platform === "darwin" ? "Meta" : "Control" : typeof navigator != "undefined" && navigator.userAgent.toLowerCase().includes("mac") ? "Meta" : "Control";
|
|
1239
|
+
const Bo = 180, Ho = 400, Fo = "blok", Po = "inline-toolbar", pt = "tooltip", $o = "[data-blok-interface=inline-toolbar]", Do = typeof process != "undefined" ? process.platform === "darwin" ? "Meta" : "Control" : typeof navigator != "undefined" && navigator.userAgent.toLowerCase().includes("mac") ? "Meta" : "Control";
|
|
1241
1240
|
class b {
|
|
1242
1241
|
/**
|
|
1243
1242
|
* Returns selected anchor node
|
|
@@ -1643,8 +1642,8 @@ class Ee {
|
|
|
1643
1642
|
return;
|
|
1644
1643
|
const n = e.startContainer, i = e.startOffset, r = e.endContainer, a = e.endOffset, l = [];
|
|
1645
1644
|
if (o.forEach((d) => {
|
|
1646
|
-
var G,
|
|
1647
|
-
const g = document.createRange(), f = d === n, C = d === r, y = f ? i : 0, H = (
|
|
1645
|
+
var G, J;
|
|
1646
|
+
const g = document.createRange(), f = d === n, C = d === r, y = f ? i : 0, H = (J = (G = d.textContent) == null ? void 0 : G.length) != null ? J : 0, L = C ? a : H;
|
|
1648
1647
|
if (y === L)
|
|
1649
1648
|
return;
|
|
1650
1649
|
g.setStart(d, y), g.setEnd(d, L);
|
|
@@ -2151,8 +2150,8 @@ function Le() {
|
|
|
2151
2150
|
}
|
|
2152
2151
|
var C = r(f), y;
|
|
2153
2152
|
C && (y = Array.prototype.some.call(f.childNodes, n));
|
|
2154
|
-
var H = !!d.parentNode, L = n(d) && n(f) && H, N = f.nodeName.toLowerCase(), G = l(this.config, N, f),
|
|
2155
|
-
if (
|
|
2153
|
+
var H = !!d.parentNode, L = n(d) && n(f) && H, N = f.nodeName.toLowerCase(), G = l(this.config, N, f), J = C && y;
|
|
2154
|
+
if (J || c(f, G) || !this.config.keepNestedBlockElements && L) {
|
|
2156
2155
|
if (!(f.nodeName === "SCRIPT" || f.nodeName === "STYLE"))
|
|
2157
2156
|
for (; f.childNodes.length > 0; )
|
|
2158
2157
|
d.insertBefore(f.childNodes[0], f);
|
|
@@ -2332,12 +2331,12 @@ const Oe = /* @__PURE__ */ ie(Ne), Re = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
2332
2331
|
}
|
|
2333
2332
|
});
|
|
2334
2333
|
}), o.innerHTML;
|
|
2335
|
-
},
|
|
2334
|
+
}, jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2336
2335
|
__proto__: null,
|
|
2337
2336
|
clean: it,
|
|
2338
2337
|
composeSanitizerConfig: Ue,
|
|
2339
2338
|
sanitizeBlocks: Be
|
|
2340
|
-
}, Symbol.toStringTag, { value: "Module" })), mt = 10, ze = "tooltip", Ke = "aria-hidden", qe = "false", Xe = "true",
|
|
2339
|
+
}, Symbol.toStringTag, { value: "Module" })), mt = 10, ze = "tooltip", Ke = "aria-hidden", qe = "false", Xe = "true", Ye = "visibility", Je = "visible", Ze = "hidden", R = class R {
|
|
2341
2340
|
/**
|
|
2342
2341
|
* Module constructor
|
|
2343
2342
|
*/
|
|
@@ -2481,7 +2480,7 @@ const Oe = /* @__PURE__ */ ie(Ne), Re = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
2481
2480
|
if (!this.nodes.wrapper)
|
|
2482
2481
|
return;
|
|
2483
2482
|
const t = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, e = this.nodes.wrapper.classList.contains(t);
|
|
2484
|
-
this.nodes.wrapper.style.setProperty(
|
|
2483
|
+
this.nodes.wrapper.style.setProperty(Ye, e ? Je : Ze), this.nodes.wrapper.setAttribute(Ke, e ? qe : Xe), this.nodes.wrapper.setAttribute("data-blok-shown", e ? "true" : "false");
|
|
2485
2484
|
}
|
|
2486
2485
|
/**
|
|
2487
2486
|
* Watch tooltip visibility changes for accessibility
|
|
@@ -2589,13 +2588,13 @@ const Oe = /* @__PURE__ */ ie(Ne), Re = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
2589
2588
|
};
|
|
2590
2589
|
R.instance = null;
|
|
2591
2590
|
let Ct = R;
|
|
2592
|
-
const ht = () => Ct.getInstance(),
|
|
2591
|
+
const ht = () => Ct.getInstance(), _o = (s, t, e) => {
|
|
2593
2592
|
ht().show(s, t, e != null ? e : {});
|
|
2594
2593
|
}, Qe = () => {
|
|
2595
2594
|
ht().hide();
|
|
2596
2595
|
}, to = (s, t, e) => {
|
|
2597
2596
|
ht().onHover(s, t, e != null ? e : {});
|
|
2598
|
-
},
|
|
2597
|
+
}, Wo = () => {
|
|
2599
2598
|
ht().destroy();
|
|
2600
2599
|
}, _ = class _ {
|
|
2601
2600
|
/**
|
|
@@ -2934,7 +2933,7 @@ class rt {
|
|
|
2934
2933
|
}
|
|
2935
2934
|
}
|
|
2936
2935
|
const at = "data-blok-table-cells";
|
|
2937
|
-
function
|
|
2936
|
+
function Go(s) {
|
|
2938
2937
|
if (s.length === 0)
|
|
2939
2938
|
return { rows: 0, cols: 0, cells: [] };
|
|
2940
2939
|
const t = Math.min(...s.map((l) => l.row)), e = Math.min(...s.map((l) => l.col)), o = Math.max(...s.map((l) => l.row)), n = Math.max(...s.map((l) => l.col)), i = o - t + 1, r = n - e + 1, a = Array.from(
|
|
@@ -2947,17 +2946,17 @@ function Wo(s) {
|
|
|
2947
2946
|
}
|
|
2948
2947
|
return { rows: i, cols: r, cells: a };
|
|
2949
2948
|
}
|
|
2950
|
-
function
|
|
2949
|
+
function Yt(s) {
|
|
2951
2950
|
const { data: t } = s;
|
|
2952
2951
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
2953
2952
|
}
|
|
2954
|
-
function
|
|
2955
|
-
const t = JSON.stringify(s).replace(/'/g, "'"), e = s.cells.map((o) => `<tr>${o.map((i) => `<td>${i.blocks.map(
|
|
2953
|
+
function Vo(s) {
|
|
2954
|
+
const t = JSON.stringify(s).replace(/'/g, "'"), e = s.cells.map((o) => `<tr>${o.map((i) => `<td>${i.blocks.map(Yt).join(" ")}</td>`).join("")}</tr>`).join("");
|
|
2956
2955
|
return `<table ${at}='${t}'>${e}</table>`;
|
|
2957
2956
|
}
|
|
2958
|
-
function
|
|
2957
|
+
function Uo(s) {
|
|
2959
2958
|
return s.cells.map(
|
|
2960
|
-
(t) => t.map((e) => e.blocks.map(
|
|
2959
|
+
(t) => t.map((e) => e.blocks.map(Yt).join(" ")).join(" ")
|
|
2961
2960
|
).join(`
|
|
2962
2961
|
`);
|
|
2963
2962
|
}
|
|
@@ -2985,7 +2984,7 @@ function oo(s) {
|
|
|
2985
2984
|
}
|
|
2986
2985
|
return it(t.innerHTML, eo).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2987
2986
|
}
|
|
2988
|
-
function
|
|
2987
|
+
function zo(s) {
|
|
2989
2988
|
if (!s)
|
|
2990
2989
|
return null;
|
|
2991
2990
|
const e = new DOMParser().parseFromString(s, "text/html").querySelector("table");
|
|
@@ -3014,7 +3013,7 @@ function Uo(s) {
|
|
|
3014
3013
|
cells: n
|
|
3015
3014
|
};
|
|
3016
3015
|
}
|
|
3017
|
-
function
|
|
3016
|
+
function Ko(s) {
|
|
3018
3017
|
var o;
|
|
3019
3018
|
const e = new RegExp(`${at}='([^']*)'|${at}="([^"]*)"`, "s").exec(s);
|
|
3020
3019
|
if (!e)
|
|
@@ -3029,11 +3028,11 @@ function zo(s) {
|
|
|
3029
3028
|
return null;
|
|
3030
3029
|
}
|
|
3031
3030
|
}
|
|
3032
|
-
const
|
|
3031
|
+
const qo = `
|
|
3033
3032
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3034
3033
|
<path d="m5 15 10-10m0 10L5 5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3035
3034
|
</svg>
|
|
3036
|
-
`,
|
|
3035
|
+
`, Xo = `
|
|
3037
3036
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3038
3037
|
<path
|
|
3039
3038
|
d="M5.5 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C11.702 5.31607 11.0759 5 10.4231 5H5.5v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H5.5v-6Z"
|
|
@@ -3043,7 +3042,7 @@ const Ko = `
|
|
|
3043
3042
|
stroke-linejoin="round"
|
|
3044
3043
|
/>
|
|
3045
3044
|
</svg>
|
|
3046
|
-
`,
|
|
3045
|
+
`, Yo = `
|
|
3047
3046
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3048
3047
|
<path
|
|
3049
3048
|
d="M8.5 5h6m-10 12h6m1-12-4 12"
|
|
@@ -3058,14 +3057,14 @@ const Ko = `
|
|
|
3058
3057
|
<path d="M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3059
3058
|
<path d="M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3060
3059
|
</svg>
|
|
3061
|
-
`,
|
|
3060
|
+
`, Zo = `
|
|
3062
3061
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3063
3062
|
<path d="M14.5 6.5l2-2-2-2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3064
3063
|
<path d="M16.5 4.5h-4a5 5 0 0 0-5 5v1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3065
3064
|
<path d="M5.5 13.5l-2 2 2 2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3066
3065
|
<path d="M3.5 15.5h4a5 5 0 0 0 5-5v-1" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3067
3066
|
</svg>
|
|
3068
|
-
`,
|
|
3067
|
+
`, Qo = `
|
|
3069
3068
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3070
3069
|
<circle cx="7.5" cy="5.5" r="1" fill="currentColor"/>
|
|
3071
3070
|
<circle cx="12.5" cy="5.5" r="1" fill="currentColor"/>
|
|
@@ -3074,11 +3073,11 @@ const Ko = `
|
|
|
3074
3073
|
<circle cx="7.5" cy="14.5" r="1" fill="currentColor"/>
|
|
3075
3074
|
<circle cx="12.5" cy="14.5" r="1" fill="currentColor"/>
|
|
3076
3075
|
</svg>
|
|
3077
|
-
`,
|
|
3076
|
+
`, tn = `
|
|
3078
3077
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3079
3078
|
<path d="M4.5 10h11M10 4.5v11" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3080
3079
|
</svg>
|
|
3081
|
-
`,
|
|
3080
|
+
`, en = `
|
|
3082
3081
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3083
3082
|
<path d="m12 5-5 5 5 5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3084
3083
|
</svg>
|
|
@@ -3091,7 +3090,7 @@ const Ko = `
|
|
|
3091
3090
|
<circle cx="9" cy="9" r="4.5" stroke="currentColor" stroke-width="1.25"/>
|
|
3092
3091
|
<path d="m12.5 12.5 3.5 3.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
3093
3092
|
</svg>
|
|
3094
|
-
`,
|
|
3093
|
+
`, on = `
|
|
3095
3094
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3096
3095
|
<path
|
|
3097
3096
|
d="M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15"
|
|
@@ -3101,7 +3100,7 @@ const Ko = `
|
|
|
3101
3100
|
stroke-linejoin="round"
|
|
3102
3101
|
/>
|
|
3103
3102
|
</svg>
|
|
3104
|
-
`,
|
|
3103
|
+
`, nn = `
|
|
3105
3104
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3106
3105
|
<path
|
|
3107
3106
|
d="M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333"
|
|
@@ -3111,7 +3110,7 @@ const Ko = `
|
|
|
3111
3110
|
stroke-linejoin="round"
|
|
3112
3111
|
/>
|
|
3113
3112
|
</svg>
|
|
3114
|
-
`,
|
|
3113
|
+
`, sn = `
|
|
3115
3114
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3116
3115
|
<path
|
|
3117
3116
|
d="M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25"
|
|
@@ -3121,7 +3120,7 @@ const Ko = `
|
|
|
3121
3120
|
stroke-linejoin="round"
|
|
3122
3121
|
/>
|
|
3123
3122
|
</svg>
|
|
3124
|
-
`,
|
|
3123
|
+
`, rn = `
|
|
3125
3124
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3126
3125
|
<path
|
|
3127
3126
|
d="M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5"
|
|
@@ -3131,7 +3130,7 @@ const Ko = `
|
|
|
3131
3130
|
stroke-linejoin="round"
|
|
3132
3131
|
/>
|
|
3133
3132
|
</svg>
|
|
3134
|
-
`,
|
|
3133
|
+
`, an = `
|
|
3135
3134
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3136
3135
|
<path
|
|
3137
3136
|
d="M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75"
|
|
@@ -3141,7 +3140,7 @@ const Ko = `
|
|
|
3141
3140
|
stroke-linejoin="round"
|
|
3142
3141
|
/>
|
|
3143
3142
|
</svg>
|
|
3144
|
-
`,
|
|
3143
|
+
`, ln = `
|
|
3145
3144
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3146
3145
|
<path
|
|
3147
3146
|
d="M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997"
|
|
@@ -3151,7 +3150,7 @@ const Ko = `
|
|
|
3151
3150
|
stroke-linejoin="round"
|
|
3152
3151
|
/>
|
|
3153
3152
|
</svg>
|
|
3154
|
-
`,
|
|
3153
|
+
`, cn = `
|
|
3155
3154
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3156
3155
|
<path
|
|
3157
3156
|
d="M6.5 10h6.6667M6.5 15V5m6.6667 10V5"
|
|
@@ -3161,7 +3160,7 @@ const Ko = `
|
|
|
3161
3160
|
stroke-linejoin="round"
|
|
3162
3161
|
/>
|
|
3163
3162
|
</svg>
|
|
3164
|
-
`,
|
|
3163
|
+
`, dn = `
|
|
3165
3164
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3166
3165
|
<path
|
|
3167
3166
|
d="M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857"
|
|
@@ -3171,12 +3170,12 @@ const Ko = `
|
|
|
3171
3170
|
stroke-linejoin="round"
|
|
3172
3171
|
/>
|
|
3173
3172
|
</svg>
|
|
3174
|
-
`,
|
|
3173
|
+
`, hn = `
|
|
3175
3174
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3176
3175
|
<path d="M10 4 3 16h14Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3177
3176
|
<path d="M10 8.5v3.5m0 2v.01" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
3178
3177
|
</svg>
|
|
3179
|
-
`,
|
|
3178
|
+
`, pn = `
|
|
3180
3179
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3181
3180
|
<path
|
|
3182
3181
|
d="M8 5h9M8 10h9M8 15h9M4 5h.01M4 10h.01M4 15h.01"
|
|
@@ -3186,7 +3185,7 @@ const Ko = `
|
|
|
3186
3185
|
stroke-linejoin="round"
|
|
3187
3186
|
/>
|
|
3188
3187
|
</svg>
|
|
3189
|
-
`,
|
|
3188
|
+
`, un = `
|
|
3190
3189
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3191
3190
|
<path
|
|
3192
3191
|
d="M8 5h9M8 10h9M8 15h9M3.5 4.5l1-1v3M3.5 9.5a1 1 0 1 1 2 0c0 .75-2 1.25-2 2h2M3.5 13.5h1a.75.75 0 0 1 0 1.5.75.75 0 0 1 0 1.5h-1"
|
|
@@ -3196,7 +3195,7 @@ const Ko = `
|
|
|
3196
3195
|
stroke-linejoin="round"
|
|
3197
3196
|
/>
|
|
3198
3197
|
</svg>
|
|
3199
|
-
`,
|
|
3198
|
+
`, fn = `
|
|
3200
3199
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3201
3200
|
<path
|
|
3202
3201
|
d="M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2"
|
|
@@ -3206,40 +3205,45 @@ const Ko = `
|
|
|
3206
3205
|
stroke-linejoin="round"
|
|
3207
3206
|
/>
|
|
3208
3207
|
</svg>
|
|
3209
|
-
`,
|
|
3208
|
+
`, gn = `
|
|
3210
3209
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3211
3210
|
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
3212
3211
|
<path d="M3 8h14M3 12h14M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
3213
3212
|
</svg>
|
|
3214
|
-
`,
|
|
3213
|
+
`, vn = `
|
|
3215
3214
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3216
3215
|
<path d="M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z" fill="currentColor"/>
|
|
3217
3216
|
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
3218
3217
|
<path d="M3 8h14M3 12h14M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
3219
3218
|
</svg>
|
|
3220
|
-
`,
|
|
3219
|
+
`, mn = `
|
|
3221
3220
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3222
3221
|
<path d="M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z" fill="currentColor"/>
|
|
3223
3222
|
<rect x="3" y="4" width="14" height="12" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
3224
3223
|
<path d="M3 8h14M3 12h14M7.5 4v12M12.5 4v12" stroke="currentColor" stroke-width="1.25"/>
|
|
3225
3224
|
</svg>
|
|
3226
|
-
`,
|
|
3225
|
+
`, bn = `
|
|
3227
3226
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3228
3227
|
<path d="M10 4l-3 3m3-3l3 3M10 4v7M5 16h10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3229
3228
|
</svg>
|
|
3230
|
-
`,
|
|
3229
|
+
`, wn = `
|
|
3231
3230
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3232
3231
|
<path d="M10 16l-3-3m3 3l3-3M10 16V9M5 4h10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3233
3232
|
</svg>
|
|
3234
|
-
`,
|
|
3233
|
+
`, kn = `
|
|
3235
3234
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3236
3235
|
<path d="M4 10l3-3M4 10l3 3M4 10h7M16 5v10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3237
3236
|
</svg>
|
|
3238
|
-
`,
|
|
3237
|
+
`, Cn = `
|
|
3239
3238
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3240
3239
|
<path d="M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3241
3240
|
</svg>
|
|
3242
|
-
`,
|
|
3241
|
+
`, yn = `
|
|
3242
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3243
|
+
<rect x="7" y="7" width="9" height="9" rx="1.5" stroke="currentColor" stroke-width="1.25"/>
|
|
3244
|
+
<path d="M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5" stroke="currentColor" stroke-width="1.25"/>
|
|
3245
|
+
</svg>
|
|
3246
|
+
`, En = `
|
|
3243
3247
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3244
3248
|
<path d="M4.5 6.5h11" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>
|
|
3245
3249
|
<path d="M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -3557,11 +3561,11 @@ class O extends xt {
|
|
|
3557
3561
|
const n = (c = o == null ? void 0 : o.iconWithGap) != null ? c : !0, i = (p = o == null ? void 0 : o.isInline) != null ? p : !1, r = (h = o == null ? void 0 : o.isNestedInline) != null ? h : !1, a = e.title;
|
|
3558
3562
|
if (e.icon && (this.nodes.icon = this.createIconElement(e.icon, n, i, r), t.appendChild(this.nodes.icon)), a !== void 0) {
|
|
3559
3563
|
const d = document.createElement("div");
|
|
3560
|
-
d.className = "mr-auto truncate text-sm font-medium leading-5", d.setAttribute(u.popoverItemTitle, ""), d.setAttribute("data-blok-testid", "popover-item-title"), d.textContent = a, t.appendChild(d), this.nodes.titleEl = d;
|
|
3564
|
+
d.className = e.secondaryLabel ? "flex-grow truncate text-sm font-medium leading-5" : "mr-auto truncate text-sm font-medium leading-5", d.setAttribute(u.popoverItemTitle, ""), d.setAttribute("data-blok-testid", "popover-item-title"), d.textContent = a, t.appendChild(d), this.nodes.titleEl = d;
|
|
3561
3565
|
}
|
|
3562
3566
|
if (e.secondaryLabel) {
|
|
3563
3567
|
const d = document.createElement("div");
|
|
3564
|
-
d.className = "whitespace-nowrap pr-1.5 text-xs font-light tracking-[0.25px] text-text-secondary opacity-60", d.setAttribute(u.popoverItemSecondaryTitle, ""), d.setAttribute("data-blok-testid", "popover-item-secondary-title"), d.textContent = e.secondaryLabel, t.appendChild(d), this.nodes.secondaryLabelEl = d;
|
|
3568
|
+
d.className = "min-w-[3.5rem] text-right whitespace-nowrap pl-3 pr-1.5 text-xs font-light tracking-[0.25px] text-text-secondary opacity-60", d.setAttribute(u.popoverItemSecondaryTitle, ""), d.setAttribute("data-blok-testid", "popover-item-secondary-title"), d.textContent = e.secondaryLabel, t.appendChild(d), this.nodes.secondaryLabelEl = d;
|
|
3565
3569
|
}
|
|
3566
3570
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
3567
3571
|
const d = document.createElement("div");
|
|
@@ -3583,8 +3587,8 @@ class O extends xt {
|
|
|
3583
3587
|
const t = (n = (o = this.renderParams) == null ? void 0 : o.isInline) != null ? n : !1, e = (r = (i = this.renderParams) == null ? void 0 : i.isNestedInline) != null ? r : !1;
|
|
3584
3588
|
return I(
|
|
3585
3589
|
z.item,
|
|
3586
|
-
// Asymmetric padding for
|
|
3587
|
-
!t && !e && "pl-2 pr-8",
|
|
3590
|
+
// Asymmetric padding: pr-8 for visual balance, pr-2 when secondary label occupies right edge
|
|
3591
|
+
!t && !e && (this.params.secondaryLabel ? "pl-2 pr-2" : "pl-2 pr-8"),
|
|
3588
3592
|
t && ro.item,
|
|
3589
3593
|
e && ao.item,
|
|
3590
3594
|
this.params.isDisabled && z.itemDisabled
|
|
@@ -3792,7 +3796,7 @@ const P = {
|
|
|
3792
3796
|
nestedContainer: "py-1 px-[3px]",
|
|
3793
3797
|
nestedLine: "w-full h-px"
|
|
3794
3798
|
};
|
|
3795
|
-
class
|
|
3799
|
+
class Jt extends xt {
|
|
3796
3800
|
/**
|
|
3797
3801
|
* Constructs the instance
|
|
3798
3802
|
* @param renderParams - optional render params for styling context
|
|
@@ -4125,12 +4129,12 @@ const tt = {
|
|
|
4125
4129
|
// Popover overlay
|
|
4126
4130
|
popoverOverlay: "hidden bg-dark",
|
|
4127
4131
|
items: "overflow-y-auto overscroll-contain"
|
|
4128
|
-
},
|
|
4132
|
+
}, Tn = {
|
|
4129
4133
|
// Popover root element for inline
|
|
4130
4134
|
popover: "relative",
|
|
4131
4135
|
// Container for inline popover
|
|
4132
4136
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
4133
|
-
},
|
|
4137
|
+
}, xn = (s) => `level-${s}`;
|
|
4134
4138
|
var A = /* @__PURE__ */ ((s) => (s.NestingLevel = "--nesting-level", s.PopoverHeight = "--popover-height", s.InlinePopoverWidth = "--inline-popover-width", s.PopoverTop = "--popover-top", s.PopoverLeft = "--popover-left", s.TriggerItemLeft = "--trigger-item-left", s.TriggerItemTop = "--trigger-item-top", s))(A || {}), X = /* @__PURE__ */ ((s) => (s.Closed = "closed", s.ClosedOnActivate = "closed-on-activate", s))(X || {});
|
|
4135
4139
|
class co extends qt {
|
|
4136
4140
|
/**
|
|
@@ -4217,7 +4221,7 @@ class co extends qt {
|
|
|
4217
4221
|
return t.map((e) => {
|
|
4218
4222
|
switch (e.type) {
|
|
4219
4223
|
case $.Separator:
|
|
4220
|
-
return new
|
|
4224
|
+
return new Jt(this.itemsRenderParams[$.Separator]);
|
|
4221
4225
|
case $.Html:
|
|
4222
4226
|
return new lt(e, this.itemsRenderParams[$.Html]);
|
|
4223
4227
|
case $.Default:
|
|
@@ -4372,7 +4376,7 @@ class Qt extends co {
|
|
|
4372
4376
|
var p;
|
|
4373
4377
|
const r = i.query === "", a = i.items.length === 0, l = i.items;
|
|
4374
4378
|
this.items.forEach((h) => {
|
|
4375
|
-
const d = h instanceof O, g = h instanceof
|
|
4379
|
+
const d = h instanceof O, g = h instanceof Jt || h instanceof lt, f = d ? !l.includes(h) : g && (a || !r);
|
|
4376
4380
|
h.toggleHidden(f);
|
|
4377
4381
|
}), this.toggleNothingFoundMessage(a);
|
|
4378
4382
|
const c = r ? this.flippableElements : i.items.map((h) => h.getElement());
|
|
@@ -4401,6 +4405,15 @@ class Qt extends co {
|
|
|
4401
4405
|
hasFocus() {
|
|
4402
4406
|
return this.flipper === void 0 ? !1 : this.flipper.hasFocus();
|
|
4403
4407
|
}
|
|
4408
|
+
/**
|
|
4409
|
+
* Toggles hidden state of all items matching the given name.
|
|
4410
|
+
* Invalidates the cached size so the next access re-measures the popover.
|
|
4411
|
+
* @param name - name of the items to toggle
|
|
4412
|
+
* @param isHidden - true to hide, false to show
|
|
4413
|
+
*/
|
|
4414
|
+
toggleItemHiddenByName(t, e) {
|
|
4415
|
+
super.toggleItemHiddenByName(t, e), this._size = void 0;
|
|
4416
|
+
}
|
|
4404
4417
|
/**
|
|
4405
4418
|
* Scroll position inside items container of the popover
|
|
4406
4419
|
*/
|
|
@@ -4656,7 +4669,7 @@ class Qt extends co {
|
|
|
4656
4669
|
});
|
|
4657
4670
|
}
|
|
4658
4671
|
}
|
|
4659
|
-
const
|
|
4672
|
+
const In = function(s) {
|
|
4660
4673
|
const t = v.make("div");
|
|
4661
4674
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", s.forEach((e) => {
|
|
4662
4675
|
const o = v.make("div"), n = e.indexOf(" ");
|
|
@@ -4728,87 +4741,90 @@ const Tn = function(s) {
|
|
|
4728
4741
|
St.isInline = !0;
|
|
4729
4742
|
let _t = St;
|
|
4730
4743
|
export {
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4744
|
+
xn as $,
|
|
4745
|
+
k as A,
|
|
4746
|
+
Mo as B,
|
|
4747
|
+
Ue as C,
|
|
4735
4748
|
u as D,
|
|
4736
4749
|
qt as E,
|
|
4737
4750
|
rt as F,
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4751
|
+
ot as G,
|
|
4752
|
+
po as H,
|
|
4753
|
+
Ho as I,
|
|
4754
|
+
Ao as J,
|
|
4755
|
+
Ko as K,
|
|
4743
4756
|
zt as L,
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4757
|
+
wo as M,
|
|
4758
|
+
$o as N,
|
|
4759
|
+
bo as O,
|
|
4747
4760
|
$ as P,
|
|
4748
|
-
|
|
4749
|
-
|
|
4761
|
+
re as Q,
|
|
4762
|
+
Qt as R,
|
|
4750
4763
|
Xt as S,
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4764
|
+
he as T,
|
|
4765
|
+
z as U,
|
|
4766
|
+
Tn as V,
|
|
4767
|
+
tt as W,
|
|
4768
|
+
X,
|
|
4769
|
+
O as Y,
|
|
4770
|
+
lt as Z,
|
|
4771
|
+
A as _,
|
|
4759
4772
|
v as a,
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4773
|
+
en as a0,
|
|
4774
|
+
co as a1,
|
|
4775
|
+
Oo as a2,
|
|
4776
|
+
Kt as a3,
|
|
4777
|
+
Mt as a4,
|
|
4778
|
+
Zo as a5,
|
|
4779
|
+
En as a6,
|
|
4780
|
+
Eo as a7,
|
|
4781
|
+
Ft as a8,
|
|
4782
|
+
tn as a9,
|
|
4783
|
+
ln as aA,
|
|
4771
4784
|
pn as aB,
|
|
4772
4785
|
un as aC,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4786
|
+
fn as aD,
|
|
4787
|
+
yn as aE,
|
|
4788
|
+
qo as aF,
|
|
4789
|
+
Do as aG,
|
|
4790
|
+
kn as aH,
|
|
4791
|
+
Cn as aI,
|
|
4792
|
+
bn as aJ,
|
|
4793
|
+
wn as aK,
|
|
4794
|
+
mn as aL,
|
|
4795
|
+
vn as aM,
|
|
4796
|
+
Io as aN,
|
|
4797
|
+
gn as aO,
|
|
4798
|
+
Go as aP,
|
|
4799
|
+
Vo as aQ,
|
|
4800
|
+
Uo as aR,
|
|
4801
|
+
zo as aS,
|
|
4802
|
+
Xo as aT,
|
|
4803
|
+
Yo as aU,
|
|
4804
|
+
Jo as aV,
|
|
4805
|
+
xo as aW,
|
|
4806
|
+
jo as aX,
|
|
4807
|
+
ce as aa,
|
|
4808
|
+
In as ab,
|
|
4809
|
+
Qo as ac,
|
|
4810
|
+
Ce as ad,
|
|
4811
|
+
Po as ae,
|
|
4812
|
+
hn as af,
|
|
4813
|
+
st as ag,
|
|
4814
|
+
vo as ah,
|
|
4815
|
+
_t as ai,
|
|
4816
|
+
ct as aj,
|
|
4817
|
+
mo as ak,
|
|
4818
|
+
Bo as al,
|
|
4819
|
+
Fo as am,
|
|
4820
|
+
Co as an,
|
|
4821
|
+
yo as ao,
|
|
4822
|
+
uo as ap,
|
|
4823
|
+
ae as aq,
|
|
4824
|
+
fo as ar,
|
|
4825
|
+
Wo as as,
|
|
4826
|
+
dn as at,
|
|
4827
|
+
cn as au,
|
|
4812
4828
|
on as av,
|
|
4813
4829
|
nn as aw,
|
|
4814
4830
|
sn as ax,
|
|
@@ -4828,15 +4844,15 @@ export {
|
|
|
4828
4844
|
it as m,
|
|
4829
4845
|
Qe as n,
|
|
4830
4846
|
to as o,
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4847
|
+
yt as p,
|
|
4848
|
+
we as q,
|
|
4849
|
+
m as r,
|
|
4850
|
+
_o as s,
|
|
4835
4851
|
I as t,
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4852
|
+
ko as u,
|
|
4853
|
+
No as v,
|
|
4854
|
+
le as w,
|
|
4855
|
+
Be as x,
|
|
4856
|
+
Bt as y,
|
|
4857
|
+
B as z
|
|
4842
4858
|
};
|