@webority/ui-react 0.11.7 → 0.12.1
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/ui-react.js
CHANGED
|
@@ -2,12 +2,13 @@ import { Children as e, Fragment as t, cloneElement as n, createElement as r, fo
|
|
|
2
2
|
import { Alert as p, Badge as m, Breadcrumb as h, Button as g, Card as _, Dropdown as v, Form as y, Modal as b, Offcanvas as x, OverlayTrigger as S, Popover as C, Tooltip as w } from "react-bootstrap";
|
|
3
3
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
4
4
|
import { COPY_FEEDBACK_MS as O, DEFAULT_IMAGE_ACCEPT as k, DEFAULT_MAX_SIZE_MB as A, acceptLabel as j, copyTextToClipboard as M, evaluatePassword as N, isImageFile as P, isImageOnlyAccept as F, validateFile as I } from "@webority/ui-elements";
|
|
5
|
+
import { getConsent as L, saveConsent as R } from "@webority/analytics/site";
|
|
5
6
|
//#region src/components/iconCatalogLoaders.g.js
|
|
6
|
-
function
|
|
7
|
+
function z(e) {
|
|
7
8
|
let t = e[0]?.toLowerCase();
|
|
8
9
|
return t && t >= "a" && t <= "z" ? t : "_";
|
|
9
10
|
}
|
|
10
|
-
var
|
|
11
|
+
var ee = {
|
|
11
12
|
a: () => import("./a.g-kGcGx7fd.js"),
|
|
12
13
|
b: () => import("./b.g-Dkq-W_Lw.js"),
|
|
13
14
|
c: () => import("./c.g-D3DSTTq_.js"),
|
|
@@ -33,7 +34,7 @@ var R = {
|
|
|
33
34
|
w: () => import("./w.g-CGXIqJB2.js"),
|
|
34
35
|
x: () => import("./x.g-CIuI3Fqx.js"),
|
|
35
36
|
z: () => import("./z.g-BUP3BJiy.js")
|
|
36
|
-
},
|
|
37
|
+
}, B = {
|
|
37
38
|
outline: {
|
|
38
39
|
a: () => import("./a.g-DpfOFhWD.js"),
|
|
39
40
|
b: () => import("./b.g-MJlor3xB.js"),
|
|
@@ -169,7 +170,7 @@ var R = {
|
|
|
169
170
|
x: () => import("./x.g-Cc7upOBC.js"),
|
|
170
171
|
z: () => import("./z.g-COIy6PjH.js")
|
|
171
172
|
}
|
|
172
|
-
}, ee = /* @__PURE__ */ "aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.milk.mini-music-sqaure.minus.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.rotate-ccw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out".split("."), B = {
|
|
173
|
+
}, V = /* @__PURE__ */ "aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.milk.mini-music-sqaure.minus.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.rotate-ccw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out".split("."), te = {
|
|
173
174
|
activity: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m7.33 14.49 2.38-3.09c.34-.44.97-.52 1.41-.18l1.83 1.44c.44.34 1.07.26 1.41-.17l2.31-2.98\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
174
175
|
alarm: "<path d=\"M2 22h20M12 6a9 9 0 0 0-9 9v7h18v-7a9 9 0 0 0-9-9ZM12 2v1M4 4l1 1M20 4l-1 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
175
176
|
"alert-circle": "<path d=\"M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.2v.1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -318,55 +319,55 @@ var R = {
|
|
|
318
319
|
"zoom-in": "<path d=\"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
319
320
|
"zoom-out": "<path d=\"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"
|
|
320
321
|
};
|
|
321
|
-
Object.keys(
|
|
322
|
+
Object.keys(te);
|
|
322
323
|
//#endregion
|
|
323
324
|
//#region src/components/warnUnknownProps.js
|
|
324
|
-
var
|
|
325
|
+
var H = /* @__PURE__ */ new Set(/* @__PURE__ */ "id.title.role.style.className.class.tabIndex.lang.dir.hidden.slot.part.draggable.spellCheck.translate.inert.popover.name.type.value.defaultValue.checked.defaultChecked.placeholder.disabled.readOnly.required.autoFocus.autoComplete.form.formAction.formMethod.formNoValidate.formTarget.min.max.step.minLength.maxLength.pattern.multiple.accept.capture.rows.cols.wrap.list.htmlFor.inputMode.enterKeyHint.href.target.rel.download.ping.referrerPolicy.src.srcSet.alt.width.height.loading.decoding.sizes.crossOrigin.useMap.colSpan.rowSpan.headers.scope.span.key.ref.children.dangerouslySetInnerHTML.suppressHydrationWarning".split(".")), ne = () => {
|
|
325
326
|
try {
|
|
326
327
|
return process.env.NODE_ENV !== "production";
|
|
327
328
|
} catch {
|
|
328
329
|
return !0;
|
|
329
330
|
}
|
|
330
|
-
},
|
|
331
|
+
}, re = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), ie = /* @__PURE__ */ new Set();
|
|
331
332
|
function U(e, t) {
|
|
332
|
-
if (!(!
|
|
333
|
-
if (
|
|
333
|
+
if (!(!ne() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
|
|
334
|
+
if (re(n) || H.has(n)) continue;
|
|
334
335
|
let t = `${e}.${n}`;
|
|
335
|
-
|
|
336
|
+
ie.has(t) || (ie.add(t), console.warn(`[@webority/ui-react] <${e}> received an unknown prop "${n}". It is not part of the component's API and is not a valid HTML attribute, so it will either be dropped or land on the DOM — check the prop name against the component catalogue at https://ui-react.webority.dev.`));
|
|
336
337
|
}
|
|
337
338
|
}
|
|
338
339
|
//#endregion
|
|
339
340
|
//#region src/components/warnInvalidValue.js
|
|
340
|
-
var
|
|
341
|
+
var ae = () => {
|
|
341
342
|
try {
|
|
342
343
|
return process.env.NODE_ENV !== "production";
|
|
343
344
|
} catch {
|
|
344
345
|
return !0;
|
|
345
346
|
}
|
|
346
|
-
},
|
|
347
|
+
}, oe = /* @__PURE__ */ new Set();
|
|
347
348
|
function W(e, t, n, r) {
|
|
348
|
-
if (!
|
|
349
|
+
if (!ae() || n == null) return;
|
|
349
350
|
let i = r instanceof Set ? r : new Set(r);
|
|
350
351
|
if (i.has(n)) return;
|
|
351
352
|
let a = `${e}.${t}.${String(n)}`;
|
|
352
|
-
|
|
353
|
+
oe.has(a) || (oe.add(a), console.warn(`[@webority/ui-react] <${e}> received ${t}="${String(n)}", which is not one of ${[...i].map((e) => `"${e}"`).join(" | ")}. The component fell back to its default, so this renders something other than what the call site asks for — check the value against the component catalogue at https://ui-react.webority.dev.`));
|
|
353
354
|
}
|
|
354
355
|
//#endregion
|
|
355
356
|
//#region src/components/AppTooltip.jsx
|
|
356
|
-
var
|
|
357
|
+
var se = {
|
|
357
358
|
start: "left",
|
|
358
359
|
end: "right",
|
|
359
360
|
top: "top",
|
|
360
361
|
bottom: "bottom"
|
|
361
|
-
},
|
|
362
|
+
}, ce = [
|
|
362
363
|
"auto",
|
|
363
364
|
"top",
|
|
364
365
|
"bottom",
|
|
365
366
|
"start",
|
|
366
367
|
"end"
|
|
367
368
|
];
|
|
368
|
-
function
|
|
369
|
-
U("AppTooltip", c), W("AppTooltip", "placement", r,
|
|
369
|
+
function G({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
|
|
370
|
+
U("AppTooltip", c), W("AppTooltip", "placement", r, ce);
|
|
370
371
|
let l = /* @__PURE__ */ E(w, {
|
|
371
372
|
id: s(),
|
|
372
373
|
className: [
|
|
@@ -379,15 +380,15 @@ function se({ content: e, children: t, placement: r = "top", tone: i = "default"
|
|
|
379
380
|
});
|
|
380
381
|
return /* @__PURE__ */ E(S, {
|
|
381
382
|
trigger: ["hover", "focus"],
|
|
382
|
-
placement:
|
|
383
|
+
placement: se[r] || r,
|
|
383
384
|
overlay: l,
|
|
384
385
|
children: n(t, c)
|
|
385
386
|
});
|
|
386
387
|
}
|
|
387
388
|
//#endregion
|
|
388
389
|
//#region src/components/withTooltip.jsx
|
|
389
|
-
function
|
|
390
|
-
return t == null || t === "" ? e : /* @__PURE__ */ E(
|
|
390
|
+
function K(e, t, n) {
|
|
391
|
+
return t == null || t === "" ? e : /* @__PURE__ */ E(G, {
|
|
391
392
|
content: t,
|
|
392
393
|
placement: n || "auto",
|
|
393
394
|
children: e
|
|
@@ -395,79 +396,79 @@ function G(e, t, n) {
|
|
|
395
396
|
}
|
|
396
397
|
//#endregion
|
|
397
398
|
//#region src/components/AppIcon.jsx
|
|
398
|
-
var
|
|
399
|
-
function
|
|
400
|
-
|
|
401
|
-
}
|
|
402
|
-
var
|
|
403
|
-
function
|
|
404
|
-
return
|
|
405
|
-
|
|
406
|
-
for (let e of
|
|
407
|
-
|
|
399
|
+
var le = /* @__PURE__ */ new Set();
|
|
400
|
+
function ue(e, t) {
|
|
401
|
+
le.has(e) || (le.add(e), console.warn(`[@webority/ui-react] The ${e} failed to load (${t?.message ?? t}); icons fall back to the linear default until a later render retries it.`));
|
|
402
|
+
}
|
|
403
|
+
var de = null, fe = null, pe = !1, me = /* @__PURE__ */ new Set();
|
|
404
|
+
function he() {
|
|
405
|
+
return fe ||= import("./iconVariants.g-p_LLiCjc.js").then((e) => {
|
|
406
|
+
de = e.VARIANT_GLYPHS, pe = !1;
|
|
407
|
+
for (let e of me) e();
|
|
408
|
+
me.clear();
|
|
408
409
|
}).catch((e) => {
|
|
409
|
-
|
|
410
|
-
for (let e of [...
|
|
410
|
+
fe = null, ue("curated icon variants chunk", e), pe ? me.clear() : (pe = !0, setTimeout(() => {
|
|
411
|
+
for (let e of [...me]) e();
|
|
411
412
|
}, 1e3));
|
|
412
|
-
}),
|
|
413
|
-
}
|
|
414
|
-
var
|
|
415
|
-
function
|
|
416
|
-
let t =
|
|
417
|
-
return n ? (
|
|
418
|
-
Object.assign(
|
|
419
|
-
let n =
|
|
413
|
+
}), fe;
|
|
414
|
+
}
|
|
415
|
+
var ge = new Set(V), q = Object.create(null), _e = Object.create(null), ve = Object.create(null), ye = Object.create(null);
|
|
416
|
+
function be(e) {
|
|
417
|
+
let t = z(e), n = ee[t];
|
|
418
|
+
return n ? (_e[t] ||= n().then((e) => {
|
|
419
|
+
Object.assign(q, e.FULL_GLYPHS), ye[t] = !1;
|
|
420
|
+
let n = ve[t];
|
|
420
421
|
if (n) {
|
|
421
422
|
for (let e of n) e();
|
|
422
423
|
n.clear();
|
|
423
424
|
}
|
|
424
425
|
}).catch((e) => {
|
|
425
|
-
|
|
426
|
-
for (let e of [...
|
|
426
|
+
_e[t] = null, ue(`full icon catalogue '${t}' shard`, e), ye[t] ? ve[t]?.clear() : (ye[t] = !0, setTimeout(() => {
|
|
427
|
+
for (let e of [...ve[t] || []]) e();
|
|
427
428
|
}, 1e3));
|
|
428
|
-
}),
|
|
429
|
+
}), _e[t]) : null;
|
|
429
430
|
}
|
|
430
|
-
var
|
|
431
|
-
function
|
|
432
|
-
let n =
|
|
431
|
+
var J = Object.create(null), xe = Object.create(null), Se = Object.create(null), Ce = Object.create(null);
|
|
432
|
+
function we(e, t) {
|
|
433
|
+
let n = B[e];
|
|
433
434
|
if (!n) return null;
|
|
434
|
-
let r =
|
|
435
|
+
let r = z(t), i = n[r];
|
|
435
436
|
if (!i) return null;
|
|
436
437
|
let a = `${e}:${r}`;
|
|
437
|
-
return
|
|
438
|
-
let n =
|
|
439
|
-
Object.assign(n, t.FULL_VARIANT_GLYPHS),
|
|
440
|
-
let r =
|
|
438
|
+
return xe[a] ||= i().then((t) => {
|
|
439
|
+
let n = J[e] || (J[e] = Object.create(null));
|
|
440
|
+
Object.assign(n, t.FULL_VARIANT_GLYPHS), Ce[a] = !1;
|
|
441
|
+
let r = Se[a];
|
|
441
442
|
if (r) {
|
|
442
443
|
for (let e of r) e();
|
|
443
444
|
r.clear();
|
|
444
445
|
}
|
|
445
446
|
}).catch((t) => {
|
|
446
|
-
|
|
447
|
-
for (let e of [...
|
|
447
|
+
xe[a] = null, ue(`${e} icon catalogue '${r}' shard`, t), Ce[a] ? Se[a]?.clear() : (Ce[a] = !0, setTimeout(() => {
|
|
448
|
+
for (let e of [...Se[a] || []]) e();
|
|
448
449
|
}, 1e3));
|
|
449
|
-
}),
|
|
450
|
+
}), xe[a];
|
|
450
451
|
}
|
|
451
|
-
var
|
|
452
|
-
function
|
|
453
|
-
for (let [t, n] of Object.entries(e))
|
|
452
|
+
var Te = V, Ee = /* @__PURE__ */ new Map();
|
|
453
|
+
function De(e) {
|
|
454
|
+
for (let [t, n] of Object.entries(e)) Ee.set(t, n);
|
|
454
455
|
}
|
|
455
456
|
function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i, className: a, color: s, style: c, ...l }) {
|
|
456
457
|
U("AppIcon", l);
|
|
457
|
-
let u = !!n && n !== "linear", d = r != null && r !== "", p = (e) => d ?
|
|
458
|
+
let u = !!n && n !== "linear", d = r != null && r !== "", p = (e) => d ? K(/* @__PURE__ */ E("span", {
|
|
458
459
|
className: "wui-icon-tip",
|
|
459
460
|
role: "img",
|
|
460
461
|
"aria-label": r,
|
|
461
462
|
children: e
|
|
462
|
-
}), r, i) : e, m =
|
|
463
|
+
}), r, i) : e, m = te[e] !== void 0, h = !m && ge.has(e), [, g] = f(0);
|
|
463
464
|
o(() => {
|
|
464
465
|
let t = () => g((e) => e + 1);
|
|
465
|
-
u && m && !
|
|
466
|
-
let r = h ?
|
|
467
|
-
h &&
|
|
468
|
-
let i = u && h ? `${n}:${
|
|
469
|
-
return u && h &&
|
|
470
|
-
|
|
466
|
+
u && m && !de && (me.add(t), he());
|
|
467
|
+
let r = h ? z(e) : null;
|
|
468
|
+
h && q[e] === void 0 && ((ve[r] ||= /* @__PURE__ */ new Set()).add(t), be(e));
|
|
469
|
+
let i = u && h ? `${n}:${z(e)}` : null;
|
|
470
|
+
return u && h && J[n]?.[e] === void 0 && ((Se[i] ||= /* @__PURE__ */ new Set()).add(t), we(n, e)), () => {
|
|
471
|
+
me.delete(t), r && ve[r]?.delete(t), i && Se[i]?.delete(t);
|
|
471
472
|
};
|
|
472
473
|
}, [
|
|
473
474
|
e,
|
|
@@ -476,7 +477,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
|
|
|
476
477
|
h,
|
|
477
478
|
n
|
|
478
479
|
]);
|
|
479
|
-
let _ =
|
|
480
|
+
let _ = Ee.get(e);
|
|
480
481
|
if (_) return p(_({
|
|
481
482
|
size: t,
|
|
482
483
|
color: s,
|
|
@@ -506,7 +507,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
|
|
|
506
507
|
}), /* @__PURE__ */ E("path", { d: "M3.2 22.5C3.2 17.4 7.5 14.9 11 14.7L12 17.4l1-2.7C16.5 14.9 20.8 17.4 20.8 22.5z" })]
|
|
507
508
|
})
|
|
508
509
|
}));
|
|
509
|
-
let v = u && (
|
|
510
|
+
let v = u && (de?.[n]?.[e] || J?.[n]?.[e]) || te[e] || q[e];
|
|
510
511
|
return v ? p(/* @__PURE__ */ E("svg", {
|
|
511
512
|
width: t,
|
|
512
513
|
height: t,
|
|
@@ -526,7 +527,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
|
|
|
526
527
|
}
|
|
527
528
|
//#endregion
|
|
528
529
|
//#region src/components/AppAccordion.jsx
|
|
529
|
-
function
|
|
530
|
+
function Oe({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i }) {
|
|
530
531
|
U("AppAccordion", i);
|
|
531
532
|
let a = s(), o = n || a, [c, l] = f(() => {
|
|
532
533
|
let n = e.map((e, t) => ({
|
|
@@ -587,7 +588,7 @@ function X(e, { size: t = 16, className: n } = {}) {
|
|
|
587
588
|
}
|
|
588
589
|
//#endregion
|
|
589
590
|
//#region src/components/AppActionIcon.jsx
|
|
590
|
-
function
|
|
591
|
+
function ke({ icon: e, label: t, tooltipPlacement: n = "auto", danger: r = !1, disabled: i = !1, size: a = 20, onClick: o, className: s = "", as: c, href: l, ...u }) {
|
|
591
592
|
U("AppActionIcon", u);
|
|
592
593
|
let d = [
|
|
593
594
|
"u-action",
|
|
@@ -597,7 +598,7 @@ function De({ icon: e, label: t, tooltipPlacement: n = "auto", danger: r = !1, d
|
|
|
597
598
|
"--wui-action-size": `${a + 16}px`,
|
|
598
599
|
...f
|
|
599
600
|
}, h = c ?? (l ? "a" : "button"), g = h === "button";
|
|
600
|
-
return
|
|
601
|
+
return K(/* @__PURE__ */ E(h, {
|
|
601
602
|
type: g ? "button" : void 0,
|
|
602
603
|
href: g || i ? void 0 : l,
|
|
603
604
|
className: d,
|
|
@@ -620,13 +621,13 @@ function De({ icon: e, label: t, tooltipPlacement: n = "auto", danger: r = !1, d
|
|
|
620
621
|
}
|
|
621
622
|
//#endregion
|
|
622
623
|
//#region src/components/AppAlert.jsx
|
|
623
|
-
var
|
|
624
|
+
var Ae = {
|
|
624
625
|
info: "info",
|
|
625
626
|
success: "check",
|
|
626
627
|
warning: "alert-triangle",
|
|
627
628
|
danger: "x"
|
|
628
629
|
};
|
|
629
|
-
function
|
|
630
|
+
function je(e, t, n, r) {
|
|
630
631
|
return n ? /* @__PURE__ */ E("span", {
|
|
631
632
|
className: "alert-icon alert-icon-image",
|
|
632
633
|
children: /* @__PURE__ */ E("img", {
|
|
@@ -644,9 +645,9 @@ function ke(e, t, n, r) {
|
|
|
644
645
|
children: e
|
|
645
646
|
}) : null;
|
|
646
647
|
}
|
|
647
|
-
function
|
|
648
|
+
function Me({ variant: e = "info", children: t, title: n, icon: r, image: i, imageAlt: a = "", className: o = "", onClose: s, dismissible: c, bordered: l = !0, role: u = "alert", ...d }) {
|
|
648
649
|
U("AppAlert", d);
|
|
649
|
-
let f = r === void 0 ?
|
|
650
|
+
let f = r === void 0 ? Ae[e] : r === "none" ? null : r, m = !!i || !!f, h = n ? /* @__PURE__ */ E("div", {
|
|
650
651
|
className: "alert-heading",
|
|
651
652
|
children: n
|
|
652
653
|
}) : null, g = m && !!h && !!t, _ = g ? 13 : 11;
|
|
@@ -663,7 +664,7 @@ function Ae({ variant: e = "info", children: t, title: n, icon: r, image: i, ima
|
|
|
663
664
|
transition: !1,
|
|
664
665
|
role: u,
|
|
665
666
|
...d,
|
|
666
|
-
children: m ? /* @__PURE__ */ D(T, { children: [
|
|
667
|
+
children: m ? /* @__PURE__ */ D(T, { children: [je(f, _, i, a), /* @__PURE__ */ D("div", {
|
|
667
668
|
className: "alert-content",
|
|
668
669
|
children: [h, t]
|
|
669
670
|
})] }) : /* @__PURE__ */ D(T, { children: [h, t] })
|
|
@@ -671,7 +672,7 @@ function Ae({ variant: e = "info", children: t, title: n, icon: r, image: i, ima
|
|
|
671
672
|
}
|
|
672
673
|
//#endregion
|
|
673
674
|
//#region src/components/AppButton.jsx
|
|
674
|
-
var
|
|
675
|
+
var Ne = {
|
|
675
676
|
primary: "primary",
|
|
676
677
|
secondary: "secondary",
|
|
677
678
|
outline: "outline-primary",
|
|
@@ -684,28 +685,28 @@ var je = {
|
|
|
684
685
|
warning: "warning",
|
|
685
686
|
subtle: "subtle",
|
|
686
687
|
"outline-light": "outline-light"
|
|
687
|
-
},
|
|
688
|
+
}, Pe = {
|
|
688
689
|
sm: 14,
|
|
689
690
|
md: 16,
|
|
690
691
|
lg: 20
|
|
691
692
|
};
|
|
692
|
-
function
|
|
693
|
+
function Fe(e, t, n) {
|
|
693
694
|
if (!e) return null;
|
|
694
695
|
let r = t === "left" ? "me-2" : "ms-2";
|
|
695
696
|
return typeof e == "string" ? /* @__PURE__ */ E(Y, {
|
|
696
697
|
name: e,
|
|
697
|
-
size:
|
|
698
|
+
size: Pe[n] ?? Pe.md,
|
|
698
699
|
className: r
|
|
699
700
|
}) : /* @__PURE__ */ E("span", {
|
|
700
701
|
className: `d-inline-flex ${r}`,
|
|
701
702
|
children: e
|
|
702
703
|
});
|
|
703
704
|
}
|
|
704
|
-
function
|
|
705
|
-
if (U("AppButton", m), W("AppButton", "variant", t, Object.keys(
|
|
705
|
+
function Ie({ children: e, variant: t = "primary", size: n = "md", type: r = "button", loading: i = !1, disabled: a = !1, block: o = !1, leftIcon: s = null, rightIcon: c = null, href: l, static: u = !1, tooltip: d, tooltipPlacement: f, className: p = "", ...m }) {
|
|
706
|
+
if (U("AppButton", m), W("AppButton", "variant", t, Object.keys(Ne)), W("AppButton", "size", n, Object.keys(Pe)), u) return K(/* @__PURE__ */ D("span", {
|
|
706
707
|
className: [
|
|
707
708
|
"btn",
|
|
708
|
-
`btn-${
|
|
709
|
+
`btn-${Ne[t] ?? "primary"}`,
|
|
709
710
|
n === "sm" ? "btn-sm" : n === "lg" ? "btn-lg" : "",
|
|
710
711
|
o ? "w-100" : "",
|
|
711
712
|
"btn-static",
|
|
@@ -713,9 +714,9 @@ function Pe({ children: e, variant: t = "primary", size: n = "md", type: r = "bu
|
|
|
713
714
|
].filter(Boolean).join(" "),
|
|
714
715
|
...m,
|
|
715
716
|
children: [
|
|
716
|
-
|
|
717
|
+
Fe(s, "left", n),
|
|
717
718
|
e,
|
|
718
|
-
|
|
719
|
+
Fe(c, "right", n)
|
|
719
720
|
]
|
|
720
721
|
}), d, f);
|
|
721
722
|
let h = [
|
|
@@ -723,10 +724,10 @@ function Pe({ children: e, variant: t = "primary", size: n = "md", type: r = "bu
|
|
|
723
724
|
i ? "is-loading" : "",
|
|
724
725
|
p
|
|
725
726
|
].filter(Boolean).join(" ");
|
|
726
|
-
return
|
|
727
|
+
return K(/* @__PURE__ */ D(g, {
|
|
727
728
|
type: (m.as === void 0 || m.as === "button") && l === void 0 ? r : void 0,
|
|
728
729
|
href: l,
|
|
729
|
-
variant:
|
|
730
|
+
variant: Ne[t] ?? "primary",
|
|
730
731
|
size: n === "md" ? void 0 : n,
|
|
731
732
|
disabled: a || i,
|
|
732
733
|
"aria-busy": i || void 0,
|
|
@@ -737,15 +738,15 @@ function Pe({ children: e, variant: t = "primary", size: n = "md", type: r = "bu
|
|
|
737
738
|
className: "spinner-border spinner-border-sm me-2",
|
|
738
739
|
"aria-hidden": "true"
|
|
739
740
|
}),
|
|
740
|
-
!i &&
|
|
741
|
+
!i && Fe(s, "left", n),
|
|
741
742
|
e,
|
|
742
|
-
!i &&
|
|
743
|
+
!i && Fe(c, "right", n)
|
|
743
744
|
]
|
|
744
745
|
}), d, f);
|
|
745
746
|
}
|
|
746
747
|
//#endregion
|
|
747
748
|
//#region src/components/AppEmptyState.jsx
|
|
748
|
-
function
|
|
749
|
+
function Le({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
|
|
749
750
|
return U("AppEmptyState", c), /* @__PURE__ */ D("div", {
|
|
750
751
|
className: [
|
|
751
752
|
"empty-state",
|
|
@@ -776,7 +777,7 @@ function Fe({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
|
|
|
776
777
|
}
|
|
777
778
|
//#endregion
|
|
778
779
|
//#region src/components/AppSpinner.jsx
|
|
779
|
-
function
|
|
780
|
+
function Re({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
|
|
780
781
|
U("AppSpinner", r);
|
|
781
782
|
let { style: i, ...a } = r, o = Number(e), s = Number.isFinite(o) && o > 0;
|
|
782
783
|
return /* @__PURE__ */ E("span", {
|
|
@@ -794,7 +795,7 @@ function Ie({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
|
|
|
794
795
|
}
|
|
795
796
|
//#endregion
|
|
796
797
|
//#region src/components/AppAsyncBlock.jsx
|
|
797
|
-
function
|
|
798
|
+
function ze({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
|
|
798
799
|
U("AppAsyncBlock", s);
|
|
799
800
|
let c = `async-block${o ? ` ${o}` : ""}`;
|
|
800
801
|
return e ? /* @__PURE__ */ E("div", {
|
|
@@ -803,17 +804,17 @@ function Le({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
|
|
|
803
804
|
...s,
|
|
804
805
|
children: a ?? /* @__PURE__ */ E("div", {
|
|
805
806
|
className: "d-flex align-items-center justify-content-center py-5",
|
|
806
|
-
children: /* @__PURE__ */ E(
|
|
807
|
+
children: /* @__PURE__ */ E(Re, { label: "Loading" })
|
|
807
808
|
})
|
|
808
809
|
}) : t ? /* @__PURE__ */ E("div", {
|
|
809
810
|
className: c,
|
|
810
811
|
"data-state": "error",
|
|
811
812
|
...s,
|
|
812
|
-
children: /* @__PURE__ */ E(
|
|
813
|
+
children: /* @__PURE__ */ E(Le, {
|
|
813
814
|
icon: "alert-circle",
|
|
814
815
|
title: "Something went wrong",
|
|
815
816
|
text: t,
|
|
816
|
-
action: i ? /* @__PURE__ */ E(
|
|
817
|
+
action: i ? /* @__PURE__ */ E(Ie, {
|
|
817
818
|
variant: "secondary",
|
|
818
819
|
onClick: i,
|
|
819
820
|
children: "Retry"
|
|
@@ -823,7 +824,7 @@ function Le({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
|
|
|
823
824
|
className: c,
|
|
824
825
|
"data-state": "empty",
|
|
825
826
|
...s,
|
|
826
|
-
children: /* @__PURE__ */ E(
|
|
827
|
+
children: /* @__PURE__ */ E(Le, {
|
|
827
828
|
icon: "inbox",
|
|
828
829
|
title: "Nothing to show yet"
|
|
829
830
|
})
|
|
@@ -836,14 +837,14 @@ function Le({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
|
|
|
836
837
|
}
|
|
837
838
|
//#endregion
|
|
838
839
|
//#region src/components/AppPopover.jsx
|
|
839
|
-
var
|
|
840
|
+
var Be = {
|
|
840
841
|
start: "left",
|
|
841
842
|
end: "right",
|
|
842
843
|
top: "top",
|
|
843
844
|
bottom: "bottom",
|
|
844
845
|
auto: "auto"
|
|
845
846
|
};
|
|
846
|
-
function
|
|
847
|
+
function Ve({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
|
|
847
848
|
U("AppPopover", l);
|
|
848
849
|
let u = s(), [d, p] = f(!1), m = (e) => {
|
|
849
850
|
p(e), o?.(e);
|
|
@@ -865,7 +866,7 @@ function ze({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
|
|
|
865
866
|
}), T = a === "click", O = a === "hover" || Array.isArray(a) && a.includes("hover");
|
|
866
867
|
return /* @__PURE__ */ E(S, {
|
|
867
868
|
trigger: a,
|
|
868
|
-
placement:
|
|
869
|
+
placement: Be[i] || i,
|
|
869
870
|
overlay: h,
|
|
870
871
|
rootClose: T,
|
|
871
872
|
delay: O ? {
|
|
@@ -878,13 +879,13 @@ function ze({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
|
|
|
878
879
|
}
|
|
879
880
|
//#endregion
|
|
880
881
|
//#region src/components/AppInfoTip.jsx
|
|
881
|
-
function
|
|
882
|
+
function He({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
|
|
882
883
|
U("AppInfoTip", i);
|
|
883
884
|
let [a, o] = f(!1), s = !!e;
|
|
884
885
|
return !s && !t ? null : /* @__PURE__ */ E("span", {
|
|
885
886
|
className: `infotip${r ? ` ${r}` : ""}`,
|
|
886
887
|
...i,
|
|
887
|
-
children: /* @__PURE__ */ E(
|
|
888
|
+
children: /* @__PURE__ */ E(Ve, {
|
|
888
889
|
trigger: /* @__PURE__ */ E("button", {
|
|
889
890
|
type: "button",
|
|
890
891
|
className: "infotip-btn",
|
|
@@ -914,8 +915,8 @@ function Z() {
|
|
|
914
915
|
}
|
|
915
916
|
//#endregion
|
|
916
917
|
//#region src/components/useWuiControl.js
|
|
917
|
-
function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s =
|
|
918
|
-
let u = d(null), f = r ??
|
|
918
|
+
function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s = Ue, on: l } = {}) {
|
|
919
|
+
let u = d(null), f = r ?? We, p = i ?? Ge, m = (s || Ue).join("\0"), h = Object.keys(l ?? {}).join("\0"), g = d(null);
|
|
919
920
|
g.current === null && (g.current = {
|
|
920
921
|
ref: e,
|
|
921
922
|
value: t,
|
|
@@ -943,7 +944,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
|
|
|
943
944
|
_.current = null;
|
|
944
945
|
}
|
|
945
946
|
}, []), y = a((e) => {
|
|
946
|
-
let t = g.current.eventKey ? g.current.eventKey.split("\0") :
|
|
947
|
+
let t = g.current.eventKey ? g.current.eventKey.split("\0") : Ue, n = Object.keys(g.current.on ?? {}), r = {
|
|
947
948
|
el: e,
|
|
948
949
|
names: t,
|
|
949
950
|
extraNames: n,
|
|
@@ -969,7 +970,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
|
|
|
969
970
|
n && !Object.is(t, n.last) && (n.last = void 0);
|
|
970
971
|
}, [t, p]), o(() => {
|
|
971
972
|
let e = u.current, t = _.current;
|
|
972
|
-
!e || !t || (t.names.join("\0") !== (m ||
|
|
973
|
+
!e || !t || (t.names.join("\0") !== (m || Ue.join("\0")) || t.extraNames.join("\0") !== h) && (v(), y(e));
|
|
973
974
|
}, [
|
|
974
975
|
m,
|
|
975
976
|
h,
|
|
@@ -980,15 +981,15 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
|
|
|
980
981
|
innerRef: u
|
|
981
982
|
};
|
|
982
983
|
}
|
|
983
|
-
var
|
|
984
|
-
function
|
|
984
|
+
var Ue = ["change"];
|
|
985
|
+
function We(e) {
|
|
985
986
|
return e.value;
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
+
function Ge(e, t) {
|
|
988
989
|
let n = t ?? "";
|
|
989
990
|
String(e.value ?? "") !== String(n) && (e.value = n);
|
|
990
991
|
}
|
|
991
|
-
function
|
|
992
|
+
function Ke(e, t) {
|
|
992
993
|
let n = e || [], r = t || [];
|
|
993
994
|
return n.length === r.length && n.every((e, t) => {
|
|
994
995
|
let n = r[t];
|
|
@@ -998,27 +999,27 @@ function We(e, t) {
|
|
|
998
999
|
return i.length === Object.keys(n).length && i.every((t) => Object.is(e[t], n[t]));
|
|
999
1000
|
});
|
|
1000
1001
|
}
|
|
1001
|
-
function
|
|
1002
|
+
function qe(e) {
|
|
1002
1003
|
return e.values;
|
|
1003
1004
|
}
|
|
1004
|
-
function
|
|
1005
|
+
function Je(e, t) {
|
|
1005
1006
|
let n = t || [], r = e.values || [];
|
|
1006
1007
|
(n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
|
|
1007
1008
|
}
|
|
1008
|
-
function
|
|
1009
|
+
function Ye(e) {
|
|
1009
1010
|
return {
|
|
1010
1011
|
start: e.start,
|
|
1011
1012
|
end: e.end
|
|
1012
1013
|
};
|
|
1013
1014
|
}
|
|
1014
|
-
function
|
|
1015
|
+
function Xe(e, t) {
|
|
1015
1016
|
if (t === void 0) return;
|
|
1016
1017
|
let n = Number.parseFloat(t);
|
|
1017
1018
|
Number.isFinite(n) && e.value !== n && (e.value = n);
|
|
1018
1019
|
}
|
|
1019
1020
|
//#endregion
|
|
1020
1021
|
//#region src/components/AppAutocomplete.jsx
|
|
1021
|
-
var
|
|
1022
|
+
var Ze = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i = "Search…", minChars: a, debounce: c, disabled: l = !1, size: u, allowCustom: d = !1, name: f, id: p, label: m, error: h, hint: g, required: _ = !1, help: v, helpLabel: y = "More information", fieldClassName: b = "", ...x }, S) {
|
|
1022
1023
|
U("AppAutocomplete", x);
|
|
1023
1024
|
let C = typeof r == "function", w = s(), T = p || w, { setRef: O, innerRef: k } = Q({
|
|
1024
1025
|
ref: S,
|
|
@@ -1029,7 +1030,7 @@ var Ye = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
1029
1030
|
let e = k.current;
|
|
1030
1031
|
if (!e || C) return;
|
|
1031
1032
|
let t = n || [];
|
|
1032
|
-
|
|
1033
|
+
Ke(t, e.options) || (e.options = t);
|
|
1033
1034
|
}, [
|
|
1034
1035
|
n,
|
|
1035
1036
|
C,
|
|
@@ -1065,7 +1066,7 @@ var Ye = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
1065
1066
|
children: [
|
|
1066
1067
|
m,
|
|
1067
1068
|
_ && /* @__PURE__ */ E(Z, {}),
|
|
1068
|
-
v && /* @__PURE__ */ E(
|
|
1069
|
+
v && /* @__PURE__ */ E(He, {
|
|
1069
1070
|
label: y,
|
|
1070
1071
|
children: v
|
|
1071
1072
|
})
|
|
@@ -1099,14 +1100,14 @@ var Ye = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
1099
1100
|
}) : null
|
|
1100
1101
|
]
|
|
1101
1102
|
});
|
|
1102
|
-
}),
|
|
1103
|
+
}), Qe = /* @__PURE__ */ new Set([
|
|
1103
1104
|
"xs",
|
|
1104
1105
|
"sm",
|
|
1105
1106
|
"md",
|
|
1106
1107
|
"lg",
|
|
1107
1108
|
"xl",
|
|
1108
1109
|
"2xl"
|
|
1109
|
-
]),
|
|
1110
|
+
]), $e = {
|
|
1110
1111
|
xs: 20,
|
|
1111
1112
|
sm: 24,
|
|
1112
1113
|
md: 32,
|
|
@@ -1114,30 +1115,30 @@ var Ye = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
1114
1115
|
xl: 64,
|
|
1115
1116
|
"2xl": 96
|
|
1116
1117
|
};
|
|
1117
|
-
function
|
|
1118
|
+
function et(e) {
|
|
1118
1119
|
let t = (e || "").trim();
|
|
1119
1120
|
if (!t) return "?";
|
|
1120
1121
|
let n = t.split(/\s+/).filter(Boolean);
|
|
1121
1122
|
return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
|
|
1122
1123
|
}
|
|
1123
|
-
function
|
|
1124
|
+
function tt(e) {
|
|
1124
1125
|
let t = e || "", n = 0;
|
|
1125
1126
|
for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
|
|
1126
1127
|
return n % 360;
|
|
1127
1128
|
}
|
|
1128
|
-
function
|
|
1129
|
+
function nt(e) {
|
|
1129
1130
|
if (typeof e == "number") return e;
|
|
1130
|
-
if (
|
|
1131
|
+
if ($e[e] != null) return $e[e];
|
|
1131
1132
|
let t = Number.parseInt(e, 10);
|
|
1132
1133
|
return Number.isNaN(t) ? 32 : t;
|
|
1133
1134
|
}
|
|
1134
|
-
function
|
|
1135
|
+
function rt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "primary", status: a = "none", ring: s = !1, label: c, icon: l, badge: u, href: d, onClick: p, linkComponent: m, tooltip: h, tooltipPlacement: g, className: _ = "", ...v }) {
|
|
1135
1136
|
U("AppAvatar", v);
|
|
1136
1137
|
let { style: y, ...b } = v, [x, S] = f(!1);
|
|
1137
1138
|
o(() => {
|
|
1138
1139
|
S(!1);
|
|
1139
1140
|
}, [t]);
|
|
1140
|
-
let C = typeof n == "string" &&
|
|
1141
|
+
let C = typeof n == "string" && Qe.has(n), w = C ? null : typeof n == "number" || /^\d+$/.test(n) ? `${n}px` : n, O = d != null || p != null, k = t != null && t !== "" && !x, A = [
|
|
1141
1142
|
"avatar",
|
|
1142
1143
|
C && n !== "md" ? `avatar-${n}` : "",
|
|
1143
1144
|
r === "circle" ? "" : `avatar-${r}`,
|
|
@@ -1146,16 +1147,16 @@ function tt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
1146
1147
|
O ? "avatar-clickable" : "",
|
|
1147
1148
|
_
|
|
1148
1149
|
].filter(Boolean).join(" "), j = {};
|
|
1149
|
-
w && (j["--avatar-size"] = w), i === "auto" && (j["--avatar-hue"] =
|
|
1150
|
+
w && (j["--avatar-size"] = w), i === "auto" && (j["--avatar-hue"] = tt(e));
|
|
1150
1151
|
let M = Object.keys(j).length || y ? {
|
|
1151
1152
|
...j,
|
|
1152
1153
|
...y
|
|
1153
1154
|
} : void 0, N = /* @__PURE__ */ E("span", {
|
|
1154
1155
|
className: "avatar-face",
|
|
1155
1156
|
"aria-hidden": "true",
|
|
1156
|
-
children: l == null ?
|
|
1157
|
+
children: l == null ? et(e) : /* @__PURE__ */ E(Y, {
|
|
1157
1158
|
name: l,
|
|
1158
|
-
size: Math.round(
|
|
1159
|
+
size: Math.round(nt(n) * .55)
|
|
1159
1160
|
})
|
|
1160
1161
|
}), P = /* @__PURE__ */ D(T, { children: [
|
|
1161
1162
|
a !== "none" && /* @__PURE__ */ E("span", {
|
|
@@ -1183,7 +1184,7 @@ function tt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
1183
1184
|
] });
|
|
1184
1185
|
if (d != null) {
|
|
1185
1186
|
let t = m || "a", n = m ? { to: d } : { href: d };
|
|
1186
|
-
return
|
|
1187
|
+
return K(/* @__PURE__ */ E(t, {
|
|
1187
1188
|
className: A,
|
|
1188
1189
|
style: M,
|
|
1189
1190
|
...b,
|
|
@@ -1193,7 +1194,7 @@ function tt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
1193
1194
|
children: F
|
|
1194
1195
|
}), h, g);
|
|
1195
1196
|
}
|
|
1196
|
-
return
|
|
1197
|
+
return K(p == null ? k ? /* @__PURE__ */ E("span", {
|
|
1197
1198
|
className: A,
|
|
1198
1199
|
style: M,
|
|
1199
1200
|
...b,
|
|
@@ -1217,7 +1218,7 @@ function tt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
1217
1218
|
}
|
|
1218
1219
|
//#endregion
|
|
1219
1220
|
//#region src/components/AppAvatarGroup.jsx
|
|
1220
|
-
var
|
|
1221
|
+
var it = {
|
|
1221
1222
|
xs: 20,
|
|
1222
1223
|
sm: 24,
|
|
1223
1224
|
md: 32,
|
|
@@ -1225,16 +1226,16 @@ var nt = {
|
|
|
1225
1226
|
xl: 64,
|
|
1226
1227
|
"2xl": 96
|
|
1227
1228
|
};
|
|
1228
|
-
function
|
|
1229
|
-
return e == null ? null : typeof e == "number" ? `${e}px` :
|
|
1229
|
+
function at(e) {
|
|
1230
|
+
return e == null ? null : typeof e == "number" ? `${e}px` : it[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${it[e]}px`;
|
|
1230
1231
|
}
|
|
1231
|
-
function
|
|
1232
|
+
function ot({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
|
|
1232
1233
|
U("AppAvatarGroup", a);
|
|
1233
1234
|
let { style: o, ...s } = a, c = [
|
|
1234
1235
|
"avatar-group",
|
|
1235
1236
|
n === "normal" ? "" : `avatar-group-${n}`,
|
|
1236
1237
|
i
|
|
1237
|
-
].filter(Boolean).join(" "), l =
|
|
1238
|
+
].filter(Boolean).join(" "), l = at(t), u = l ? {
|
|
1238
1239
|
"--avatar-size": l,
|
|
1239
1240
|
...o
|
|
1240
1241
|
} : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
|
|
@@ -1252,8 +1253,8 @@ function it({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
|
|
|
1252
1253
|
}
|
|
1253
1254
|
//#endregion
|
|
1254
1255
|
//#region src/components/AppBadge.jsx
|
|
1255
|
-
function
|
|
1256
|
-
return U("AppBadge", o),
|
|
1256
|
+
function st({ children: e, tone: t, dot: n = !1, tooltip: r, tooltipPlacement: i, className: a = "", ...o }) {
|
|
1257
|
+
return U("AppBadge", o), K(/* @__PURE__ */ E(m, {
|
|
1257
1258
|
bg: !1,
|
|
1258
1259
|
className: [
|
|
1259
1260
|
t && t !== "neutral" ? `badge-${t}` : "",
|
|
@@ -1266,18 +1267,18 @@ function at({ children: e, tone: t, dot: n = !1, tooltip: r, tooltipPlacement: i
|
|
|
1266
1267
|
}
|
|
1267
1268
|
//#endregion
|
|
1268
1269
|
//#region src/components/AppBanner.jsx
|
|
1269
|
-
var
|
|
1270
|
+
var ct = [
|
|
1270
1271
|
"info",
|
|
1271
1272
|
"success",
|
|
1272
1273
|
"warning",
|
|
1273
1274
|
"danger",
|
|
1274
1275
|
"neutral"
|
|
1275
1276
|
];
|
|
1276
|
-
function
|
|
1277
|
+
function lt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
|
|
1277
1278
|
U("AppBanner", o);
|
|
1278
1279
|
let [s, c] = f(!0);
|
|
1279
1280
|
if (!s) return null;
|
|
1280
|
-
let l =
|
|
1281
|
+
let l = ct.includes(e) ? e : "info", u = () => {
|
|
1281
1282
|
c(!1), i?.();
|
|
1282
1283
|
};
|
|
1283
1284
|
return /* @__PURE__ */ D("div", {
|
|
@@ -1308,7 +1309,7 @@ function st({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
|
|
|
1308
1309
|
}
|
|
1309
1310
|
//#endregion
|
|
1310
1311
|
//#region src/components/AppBreadcrumbs.jsx
|
|
1311
|
-
function
|
|
1312
|
+
function ut({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
1312
1313
|
return U("AppBreadcrumbs", r), /* @__PURE__ */ E(h, {
|
|
1313
1314
|
className: n || void 0,
|
|
1314
1315
|
...r,
|
|
@@ -1327,17 +1328,17 @@ function ct({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
|
1327
1328
|
}
|
|
1328
1329
|
//#endregion
|
|
1329
1330
|
//#region src/components/AppCallout.jsx
|
|
1330
|
-
var
|
|
1331
|
+
var dt = {
|
|
1331
1332
|
info: "info",
|
|
1332
1333
|
success: "check",
|
|
1333
1334
|
warning: "alert-triangle",
|
|
1334
1335
|
danger: "x"
|
|
1335
1336
|
};
|
|
1336
|
-
function
|
|
1337
|
+
function ft({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: d = "", ...p }) {
|
|
1337
1338
|
U("AppCallout", p);
|
|
1338
1339
|
let [m, h] = f(!0);
|
|
1339
1340
|
if (!m) return null;
|
|
1340
|
-
let g = r === void 0 ?
|
|
1341
|
+
let g = r === void 0 ? dt[t] : r === "none" ? null : r, _ = !!i, v = _ || !!g, y = v && !!n && e != null && e !== !1 && e !== "", b = y ? 13 : 11;
|
|
1341
1342
|
return /* @__PURE__ */ D("div", {
|
|
1342
1343
|
className: [
|
|
1343
1344
|
"info-callout",
|
|
@@ -1387,13 +1388,13 @@ function ut({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
|
|
|
1387
1388
|
}
|
|
1388
1389
|
//#endregion
|
|
1389
1390
|
//#region src/components/AppCard.jsx
|
|
1390
|
-
var
|
|
1391
|
+
var pt = {
|
|
1391
1392
|
xs: 320,
|
|
1392
1393
|
sm: 420,
|
|
1393
1394
|
md: 560,
|
|
1394
1395
|
lg: 720
|
|
1395
1396
|
};
|
|
1396
|
-
function
|
|
1397
|
+
function mt({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", header: i, headerExtra: a, headerActions: o, footer: s, media: c, children: l, variant: u = "default", tone: d = "primary", padding: f = "md", maxWidth: p, className: m = "", bodyClassName: h = "", headerClassName: g = "", body: v = !0, lifted: y = !1, href: b, onClick: x, linkComponent: S, ...C }) {
|
|
1397
1398
|
U("AppCard", C);
|
|
1398
1399
|
let { style: w, ...O } = C, k = b != null || x != null, A = [
|
|
1399
1400
|
u && u !== "default" ? `card-${u}` : "",
|
|
@@ -1403,7 +1404,7 @@ function ft({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
|
|
|
1403
1404
|
p == null ? "" : "card-constrained",
|
|
1404
1405
|
k ? "card-clickable" : "",
|
|
1405
1406
|
m
|
|
1406
|
-
].filter(Boolean).join(" ") || void 0, j = p == null ? void 0 :
|
|
1407
|
+
].filter(Boolean).join(" ") || void 0, j = p == null ? void 0 : pt[p] == null ? typeof p == "number" ? `${p}px` : p : `${pt[p]}px`, M = j ? {
|
|
1407
1408
|
"--card-max-width": j,
|
|
1408
1409
|
...w
|
|
1409
1410
|
} : w, N = {};
|
|
@@ -1474,7 +1475,7 @@ function ft({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
|
|
|
1474
1475
|
}
|
|
1475
1476
|
//#endregion
|
|
1476
1477
|
//#region src/lib/CheckField.jsx
|
|
1477
|
-
var
|
|
1478
|
+
var ht = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
|
|
1478
1479
|
let d = s(), f = t || d, p = r ? `${f}-error` : void 0, m = i ? `${f}-hint` : void 0;
|
|
1479
1480
|
return /* @__PURE__ */ D("div", {
|
|
1480
1481
|
className: `${l}${a ? ` ${a}` : ""}`,
|
|
@@ -1505,8 +1506,8 @@ var pt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
1505
1506
|
}) : null
|
|
1506
1507
|
]
|
|
1507
1508
|
});
|
|
1508
|
-
}),
|
|
1509
|
-
return U("AppCheckbox", o), /* @__PURE__ */ E(
|
|
1509
|
+
}), gt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
1510
|
+
return U("AppCheckbox", o), /* @__PURE__ */ E(ht, {
|
|
1510
1511
|
ref: s,
|
|
1511
1512
|
label: e,
|
|
1512
1513
|
id: t,
|
|
@@ -1521,7 +1522,7 @@ var pt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
1521
1522
|
});
|
|
1522
1523
|
//#endregion
|
|
1523
1524
|
//#region src/components/AppChip.jsx
|
|
1524
|
-
function
|
|
1525
|
+
function _t({ label: e, children: t, tone: n = "neutral", variant: r = "soft", size: i = "md", leadingIcon: a, avatar: o, onRemove: s, onClick: c, disabled: l = !1, removeLabel: u, className: d = "", ...f }) {
|
|
1525
1526
|
U("AppChip", f);
|
|
1526
1527
|
let p = e ?? t, m = [
|
|
1527
1528
|
"chip",
|
|
@@ -1575,7 +1576,7 @@ function ht({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
|
|
|
1575
1576
|
}
|
|
1576
1577
|
//#endregion
|
|
1577
1578
|
//#region src/components/AppChoiceCard.jsx
|
|
1578
|
-
function
|
|
1579
|
+
function vt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s = 18, image: c, imageAlt: l = "", children: u, title: d, description: f, checkIcon: p = "check", checkSize: m = 18, className: h = "", ...g }) {
|
|
1579
1580
|
return U("AppChoiceCard", g), /* @__PURE__ */ D("label", {
|
|
1580
1581
|
className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${h ? ` ${h}` : ""}`,
|
|
1581
1582
|
...g,
|
|
@@ -1624,7 +1625,7 @@ function gt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
|
|
|
1624
1625
|
}
|
|
1625
1626
|
//#endregion
|
|
1626
1627
|
//#region src/components/AppChoiceChip.jsx
|
|
1627
|
-
function
|
|
1628
|
+
function yt({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
|
|
1628
1629
|
return U("AppChoiceChip", u), /* @__PURE__ */ D("label", {
|
|
1629
1630
|
className: `choice-chip${i ? " checked" : ""}${c === "sm" ? " choice-chip-sm" : c === "lg" ? " choice-chip-lg" : ""}${l ? ` ${l}` : ""}`,
|
|
1630
1631
|
...u,
|
|
@@ -1646,7 +1647,7 @@ function _t({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
|
|
|
1646
1647
|
}
|
|
1647
1648
|
//#endregion
|
|
1648
1649
|
//#region src/components/AppColorField.jsx
|
|
1649
|
-
function
|
|
1650
|
+
function bt({ value: e = "#000000", onChange: t, label: n, required: r = !1, error: i, hint: a, name: o, id: c, disabled: l = !1, size: u = "md", className: d = "", fieldClassName: f = "", ...p }) {
|
|
1650
1651
|
U("AppColorField", p);
|
|
1651
1652
|
let m = s(), h = c || m, g = i ? `${h}-error` : a ? `${h}-hint` : void 0, _ = (e) => /^#[0-9a-f]{6}$/i.test(e), v = u === "sm" ? " color-field-sm" : u === "lg" ? " color-field-lg" : "", y = u === "sm" ? " input-sm" : u === "lg" ? " input-lg" : "";
|
|
1652
1653
|
return /* @__PURE__ */ D("div", {
|
|
@@ -1698,7 +1699,7 @@ function vt({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
|
|
|
1698
1699
|
}
|
|
1699
1700
|
//#endregion
|
|
1700
1701
|
//#region src/components/AppCompareTable.jsx
|
|
1701
|
-
function
|
|
1702
|
+
function xt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
|
|
1702
1703
|
U("AppCompareTable", i);
|
|
1703
1704
|
let a = (e) => e === !0 ? /* @__PURE__ */ E("span", {
|
|
1704
1705
|
className: "compare-yes",
|
|
@@ -1735,22 +1736,22 @@ function yt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
|
|
|
1735
1736
|
}
|
|
1736
1737
|
//#endregion
|
|
1737
1738
|
//#region src/components/AppInput.jsx
|
|
1738
|
-
var
|
|
1739
|
+
var St = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: u, rightIcon: p, onRightIconClick: m, rightIconLabel: h, unit: g, id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: T, prefix: O, suffix: k, action: A, floatingLabel: j = !1, variant: M, passwordRequirements: P = !1, requirementsPlacement: F = "auto", ...I }, L) {
|
|
1739
1740
|
U("AppInput", I);
|
|
1740
1741
|
let [R, z] = f(!1), ee = s(), B = _ || ee, V = c === "password", te = V && R ? "text" : c, H = d(null), ne = (e) => {
|
|
1741
1742
|
H.current = e, typeof L == "function" ? L(e) : L && (L.current = e);
|
|
1742
|
-
}, re = String(I.value ?? I.defaultValue ?? ""), [ie,
|
|
1743
|
+
}, re = String(I.value ?? I.defaultValue ?? ""), [ie, ae] = f(() => !!re), [oe, W] = f(() => re.length), se = C && !S, ce = C || w, G = V && !!P, [K, le] = f(re);
|
|
1743
1744
|
o(() => {
|
|
1744
|
-
!
|
|
1745
|
-
}, [I.value,
|
|
1746
|
-
if (!
|
|
1745
|
+
!G || I.value === void 0 || le(String(I.value ?? ""));
|
|
1746
|
+
}, [I.value, G]), o(() => {
|
|
1747
|
+
if (!ce || I.value === void 0) return;
|
|
1747
1748
|
let e = String(I.value ?? "");
|
|
1748
|
-
|
|
1749
|
-
}, [I.value,
|
|
1749
|
+
ae(!!e), W(e.length);
|
|
1750
|
+
}, [I.value, ce]);
|
|
1750
1751
|
let ue = (e) => {
|
|
1751
|
-
|
|
1752
|
+
ae(!!e.target.value), W(e.target.value.length), I.onInput?.(e);
|
|
1752
1753
|
}, de = (e) => {
|
|
1753
|
-
|
|
1754
|
+
G && le(e.target.value), ce ? ue(e) : I.onInput?.(e);
|
|
1754
1755
|
}, fe = se ? /* @__PURE__ */ E("button", {
|
|
1755
1756
|
type: "button",
|
|
1756
1757
|
className: "input-clear",
|
|
@@ -1758,7 +1759,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
1758
1759
|
let e = H.current;
|
|
1759
1760
|
if (!e) return;
|
|
1760
1761
|
let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
|
|
1761
|
-
t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })),
|
|
1762
|
+
t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), ae(!1), e.focus();
|
|
1762
1763
|
},
|
|
1763
1764
|
"aria-label": "Clear",
|
|
1764
1765
|
tabIndex: -1,
|
|
@@ -1790,8 +1791,8 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
1790
1791
|
...I,
|
|
1791
1792
|
placeholder: j ? " " : I.placeholder,
|
|
1792
1793
|
ref: ne,
|
|
1793
|
-
onInput:
|
|
1794
|
-
}), _e = P === !0 || P, ve = _e && typeof _e == "object" && _e.title || "Password Requirements", ye =
|
|
1794
|
+
onInput: ce || G ? de : I.onInput
|
|
1795
|
+
}), _e = P === !0 || P, ve = _e && typeof _e == "object" && _e.title || "Password Requirements", ye = G ? N(K, _e) : null, be = G ? /* @__PURE__ */ E("ul", {
|
|
1795
1796
|
className: "pw-criteria",
|
|
1796
1797
|
"aria-live": "polite",
|
|
1797
1798
|
children: ye.map((e) => /* @__PURE__ */ D("li", {
|
|
@@ -1887,7 +1888,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
1887
1888
|
})
|
|
1888
1889
|
]
|
|
1889
1890
|
});
|
|
1890
|
-
J =
|
|
1891
|
+
J = G ? /* @__PURE__ */ E(Ve, {
|
|
1891
1892
|
trigger: e,
|
|
1892
1893
|
triggerType: "focus",
|
|
1893
1894
|
placement: F,
|
|
@@ -1941,7 +1942,7 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
1941
1942
|
children: [
|
|
1942
1943
|
e,
|
|
1943
1944
|
t && /* @__PURE__ */ E(Z, {}),
|
|
1944
|
-
i && /* @__PURE__ */ E(
|
|
1945
|
+
i && /* @__PURE__ */ E(He, {
|
|
1945
1946
|
label: a,
|
|
1946
1947
|
children: i
|
|
1947
1948
|
})
|
|
@@ -1958,39 +1959,39 @@ var bt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
1958
1959
|
children: r
|
|
1959
1960
|
}) : null,
|
|
1960
1961
|
w && /* @__PURE__ */ D("div", {
|
|
1961
|
-
className: `field-count${T &&
|
|
1962
|
-
children: [
|
|
1962
|
+
className: `field-count${T && oe >= T ? " at-limit" : ""}`,
|
|
1963
|
+
children: [oe, T ? ` / ${T}` : ""]
|
|
1963
1964
|
})
|
|
1964
1965
|
]
|
|
1965
1966
|
});
|
|
1966
|
-
}),
|
|
1967
|
+
}), Ct = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", wt = {
|
|
1967
1968
|
sm: 380,
|
|
1968
1969
|
md: 440,
|
|
1969
1970
|
lg: 640,
|
|
1970
1971
|
xl: 880
|
|
1971
|
-
},
|
|
1972
|
-
function
|
|
1972
|
+
}, Tt = !1;
|
|
1973
|
+
function Et() {
|
|
1973
1974
|
let e = !0;
|
|
1974
1975
|
try {
|
|
1975
1976
|
e = process.env.NODE_ENV !== "production";
|
|
1976
1977
|
} catch {
|
|
1977
1978
|
e = !0;
|
|
1978
1979
|
}
|
|
1979
|
-
!e ||
|
|
1980
|
+
!e || Tt || (Tt = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
|
|
1980
1981
|
}
|
|
1981
|
-
function
|
|
1982
|
-
U("AppModal", v), W("AppModal", "size", typeof u == "string" ? u : null, Object.keys(
|
|
1982
|
+
function Dt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: u = "md", placement: f = "center", hideHeader: p = !1, staticBackdrop: m = !1, ariaLabel: h, className: g = "", children: _, ...v }) {
|
|
1983
|
+
U("AppModal", v), W("AppModal", "size", typeof u == "string" ? u : null, Object.keys(wt));
|
|
1983
1984
|
let { style: y, ...x } = v;
|
|
1984
|
-
p && !h && typeof n != "string" &&
|
|
1985
|
+
p && !h && typeof n != "string" && Et();
|
|
1985
1986
|
let S = d(null);
|
|
1986
1987
|
o(() => {
|
|
1987
1988
|
if (!e) return;
|
|
1988
1989
|
let t = S.current?.closest(".modal-content");
|
|
1989
1990
|
if (!t) return;
|
|
1990
|
-
let n = () => Array.from(t.querySelectorAll(
|
|
1991
|
+
let n = () => Array.from(t.querySelectorAll(Ct));
|
|
1991
1992
|
(t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
|
|
1992
1993
|
}, [e]);
|
|
1993
|
-
let C = typeof u == "number" ? u :
|
|
1994
|
+
let C = typeof u == "number" ? u : wt[u] ?? wt.md, w = [
|
|
1994
1995
|
"wui-modal",
|
|
1995
1996
|
a === "default" ? "" : `tone-${a}`,
|
|
1996
1997
|
g
|
|
@@ -2075,30 +2076,30 @@ function Tt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
|
|
|
2075
2076
|
}
|
|
2076
2077
|
//#endregion
|
|
2077
2078
|
//#region src/components/ModalIcons.jsx
|
|
2078
|
-
var
|
|
2079
|
+
var Ot = (e) => function({ size: t = 72 }) {
|
|
2079
2080
|
return /* @__PURE__ */ E("wui-status-icon", {
|
|
2080
2081
|
tone: e,
|
|
2081
2082
|
size: t
|
|
2082
2083
|
});
|
|
2083
|
-
},
|
|
2084
|
-
success:
|
|
2085
|
-
error:
|
|
2086
|
-
warning:
|
|
2087
|
-
info:
|
|
2088
|
-
delete:
|
|
2084
|
+
}, kt = {
|
|
2085
|
+
success: Ot("success"),
|
|
2086
|
+
error: Ot("error"),
|
|
2087
|
+
warning: Ot("warning"),
|
|
2088
|
+
info: Ot("info"),
|
|
2089
|
+
delete: Ot("delete")
|
|
2089
2090
|
};
|
|
2090
2091
|
//#endregion
|
|
2091
2092
|
//#region src/components/AppConfirmDialog.jsx
|
|
2092
|
-
function
|
|
2093
|
+
function At({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, image: c, confirmPhrase: l, onConfirm: u, onClose: d, loading: p = !1, staticBackdrop: m = !1, placement: h = "center", size: g = "md", className: _ = "", ...v }) {
|
|
2093
2094
|
U("AppConfirmDialog", v);
|
|
2094
2095
|
let [y, b] = f("");
|
|
2095
2096
|
if (o(() => {
|
|
2096
2097
|
e || b("");
|
|
2097
2098
|
}, [e]), !e) return null;
|
|
2098
|
-
let x = !!l && y.trim() !== l, S = c ? null :
|
|
2099
|
+
let x = !!l && y.trim() !== l, S = c ? null : kt[s || (a ? "delete" : "info")], C = () => {
|
|
2099
2100
|
p || d?.();
|
|
2100
2101
|
};
|
|
2101
|
-
return /* @__PURE__ */ E(
|
|
2102
|
+
return /* @__PURE__ */ E(Dt, {
|
|
2102
2103
|
...v,
|
|
2103
2104
|
open: e,
|
|
2104
2105
|
hideHeader: !0,
|
|
@@ -2110,12 +2111,12 @@ function Ot({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
2110
2111
|
className: ["wui-confirm", _].filter(Boolean).join(" "),
|
|
2111
2112
|
footer: /* @__PURE__ */ D("div", {
|
|
2112
2113
|
className: "wui-confirm-actions",
|
|
2113
|
-
children: [/* @__PURE__ */ E(
|
|
2114
|
+
children: [/* @__PURE__ */ E(Ie, {
|
|
2114
2115
|
variant: "secondary",
|
|
2115
2116
|
disabled: p,
|
|
2116
2117
|
onClick: C,
|
|
2117
2118
|
children: i
|
|
2118
|
-
}), /* @__PURE__ */ E(
|
|
2119
|
+
}), /* @__PURE__ */ E(Ie, {
|
|
2119
2120
|
variant: a ? "danger" : "primary",
|
|
2120
2121
|
disabled: x,
|
|
2121
2122
|
loading: p,
|
|
@@ -2147,7 +2148,7 @@ function Ot({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
2147
2148
|
className: "wui-confirm-msg",
|
|
2148
2149
|
children: n
|
|
2149
2150
|
}),
|
|
2150
|
-
l && /* @__PURE__ */ E(
|
|
2151
|
+
l && /* @__PURE__ */ E(St, {
|
|
2151
2152
|
fieldClassName: "mt-3 mb-0 w-100 text-start",
|
|
2152
2153
|
label: /* @__PURE__ */ D(T, { children: [
|
|
2153
2154
|
"Type ",
|
|
@@ -2164,27 +2165,55 @@ function Ot({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
2164
2165
|
});
|
|
2165
2166
|
}
|
|
2166
2167
|
//#endregion
|
|
2168
|
+
//#region src/components/AppConsentBanner.jsx
|
|
2169
|
+
var jt = ["bottom-left", "bottom-right"];
|
|
2170
|
+
function Mt({ heading: e, description: t, policyHref: n, policyLabel: r, analyticsDescription: i, functionalDescription: a, marketingDescription: s, position: c = "bottom-left", className: l = "", style: u, ...d }) {
|
|
2171
|
+
U("AppConsentBanner", d), W("AppConsentBanner", "position", c, jt);
|
|
2172
|
+
let { setRef: f, innerRef: p } = Q({ on: { "wui-consent-save": (e) => {
|
|
2173
|
+
R(e.detail), p.current && (p.current.preferences = L());
|
|
2174
|
+
} } });
|
|
2175
|
+
return o(() => {
|
|
2176
|
+
let e = p.current;
|
|
2177
|
+
if (!e) return;
|
|
2178
|
+
let t = L();
|
|
2179
|
+
e.preferences = t, t.decided || e.open();
|
|
2180
|
+
}, [p]), /* @__PURE__ */ E("wui-consent-banner", {
|
|
2181
|
+
ref: f,
|
|
2182
|
+
position: c,
|
|
2183
|
+
heading: e || void 0,
|
|
2184
|
+
description: t || void 0,
|
|
2185
|
+
"policy-href": n || void 0,
|
|
2186
|
+
"policy-label": r || void 0,
|
|
2187
|
+
"analytics-description": i || void 0,
|
|
2188
|
+
"functional-description": a || void 0,
|
|
2189
|
+
"marketing-description": s || void 0,
|
|
2190
|
+
class: l || void 0,
|
|
2191
|
+
style: u,
|
|
2192
|
+
...d
|
|
2193
|
+
});
|
|
2194
|
+
}
|
|
2195
|
+
//#endregion
|
|
2167
2196
|
//#region src/components/AppCopyButton.jsx
|
|
2168
|
-
var
|
|
2197
|
+
var Nt = {
|
|
2169
2198
|
sm: 14,
|
|
2170
2199
|
md: 16,
|
|
2171
2200
|
lg: 20
|
|
2172
2201
|
};
|
|
2173
|
-
function
|
|
2174
|
-
U("AppCopyButton", m), W("AppCopyButton", "size", i, Object.keys(
|
|
2202
|
+
function Pt({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: s = "ghost", onCopied: c, className: l = "", tooltip: u, tooltipPlacement: p, ...m }) {
|
|
2203
|
+
U("AppCopyButton", m), W("AppCopyButton", "size", i, Object.keys(Nt));
|
|
2175
2204
|
let [h, g] = f(!1), _ = d(null);
|
|
2176
2205
|
o(() => () => clearTimeout(_.current), []);
|
|
2177
2206
|
let v = a(async () => {
|
|
2178
2207
|
await M(e) && (g(!0), clearTimeout(_.current), _.current = setTimeout(() => g(!1), O), c?.());
|
|
2179
2208
|
}, [e, c]), y = h ? n : t, b = h ? "check" : "files";
|
|
2180
|
-
return
|
|
2209
|
+
return K(r ? /* @__PURE__ */ E(ke, {
|
|
2181
2210
|
icon: b,
|
|
2182
2211
|
label: y,
|
|
2183
|
-
size:
|
|
2212
|
+
size: Nt[i] ?? Nt.md,
|
|
2184
2213
|
onClick: v,
|
|
2185
2214
|
className: l,
|
|
2186
2215
|
...m
|
|
2187
|
-
}) : /* @__PURE__ */ E(
|
|
2216
|
+
}) : /* @__PURE__ */ E(Ie, {
|
|
2188
2217
|
leftIcon: b,
|
|
2189
2218
|
variant: s,
|
|
2190
2219
|
size: i,
|
|
@@ -2197,7 +2226,7 @@ function At({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
|
|
|
2197
2226
|
}
|
|
2198
2227
|
//#endregion
|
|
2199
2228
|
//#region src/components/AppSkeleton.jsx
|
|
2200
|
-
function
|
|
2229
|
+
function Ft({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
|
|
2201
2230
|
return U("AppSkeleton", a), /* @__PURE__ */ E("span", {
|
|
2202
2231
|
className: `skeleton${r ? ` ${r}` : ""}`,
|
|
2203
2232
|
"aria-hidden": "true",
|
|
@@ -2210,28 +2239,28 @@ function jt({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
|
|
|
2210
2239
|
...a
|
|
2211
2240
|
});
|
|
2212
2241
|
}
|
|
2213
|
-
function
|
|
2214
|
-
return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ E("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E(
|
|
2242
|
+
function It({ rows: e = 4, cols: t = 5 }) {
|
|
2243
|
+
return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ E("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E(Ft, {
|
|
2215
2244
|
width: t === 0 ? "70%" : "50%",
|
|
2216
2245
|
height: 12
|
|
2217
2246
|
}) }, `col-${t}`)) }, `row-${n}`));
|
|
2218
2247
|
}
|
|
2219
2248
|
//#endregion
|
|
2220
2249
|
//#region src/lib/pageWindow.js
|
|
2221
|
-
var
|
|
2250
|
+
var Lt = (e, t) => {
|
|
2222
2251
|
let n = [];
|
|
2223
2252
|
for (let r = e; r <= t; r += 1) n.push(r);
|
|
2224
2253
|
return n;
|
|
2225
2254
|
};
|
|
2226
|
-
function
|
|
2255
|
+
function Rt(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
|
|
2227
2256
|
let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
|
|
2228
|
-
if (i <= n * 2 + 3 + r * 2) return
|
|
2229
|
-
let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u =
|
|
2230
|
-
return u.push(...c ? ["ellipsis-left"] :
|
|
2257
|
+
if (i <= n * 2 + 3 + r * 2) return Lt(1, i);
|
|
2258
|
+
let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = Lt(1, r);
|
|
2259
|
+
return u.push(...c ? ["ellipsis-left"] : Lt(r + 1, o - 1)), u.push(...Lt(o, s)), u.push(...l ? ["ellipsis-right"] : Lt(s + 1, i - r)), u.push(...Lt(i - r + 1, i)), u;
|
|
2231
2260
|
}
|
|
2232
2261
|
//#endregion
|
|
2233
2262
|
//#region src/components/AppSelectMini.jsx
|
|
2234
|
-
function
|
|
2263
|
+
function zt({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: a, id: s, disabled: c, size: l, icon: u, prefix: d, className: f, ...p }) {
|
|
2235
2264
|
U("AppSelectMini", p);
|
|
2236
2265
|
let { setRef: m, innerRef: h } = Q({
|
|
2237
2266
|
value: e ?? "",
|
|
@@ -2245,7 +2274,7 @@ function Ft({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
|
|
|
2245
2274
|
label: e.label ?? e.text ?? "",
|
|
2246
2275
|
icon: e.icon
|
|
2247
2276
|
}));
|
|
2248
|
-
|
|
2277
|
+
Ke(t, e.options) || (e.options = t);
|
|
2249
2278
|
}, [n, h]), o(() => {
|
|
2250
2279
|
let e = h.current;
|
|
2251
2280
|
if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
@@ -2268,22 +2297,22 @@ function Ft({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
|
|
|
2268
2297
|
}
|
|
2269
2298
|
//#endregion
|
|
2270
2299
|
//#region src/components/AppTablePagination.jsx
|
|
2271
|
-
var
|
|
2300
|
+
var Bt = [
|
|
2272
2301
|
5,
|
|
2273
2302
|
10,
|
|
2274
2303
|
25,
|
|
2275
2304
|
50
|
|
2276
2305
|
];
|
|
2277
|
-
function
|
|
2306
|
+
function Vt({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Bt, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
|
|
2278
2307
|
U("AppTablePagination", f);
|
|
2279
|
-
let p = l === "numbered", m = p ?
|
|
2308
|
+
let p = l === "numbered", m = p ? Rt(e, t) : null;
|
|
2280
2309
|
return /* @__PURE__ */ D("div", {
|
|
2281
2310
|
className: `table-pagination${d ? ` ${d}` : ""}`,
|
|
2282
2311
|
...f,
|
|
2283
2312
|
children: [
|
|
2284
2313
|
u && /* @__PURE__ */ D("span", {
|
|
2285
2314
|
className: "tpg-rows",
|
|
2286
|
-
children: ["Rows per page:", /* @__PURE__ */ E(
|
|
2315
|
+
children: ["Rows per page:", /* @__PURE__ */ E(zt, {
|
|
2287
2316
|
value: n,
|
|
2288
2317
|
onChange: (e) => s(Number(e)),
|
|
2289
2318
|
ariaLabel: "Rows per page",
|
|
@@ -2347,13 +2376,13 @@ function Lt({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
2347
2376
|
}
|
|
2348
2377
|
//#endregion
|
|
2349
2378
|
//#region src/components/AppDataTable.jsx
|
|
2350
|
-
function
|
|
2379
|
+
function Ht(e) {
|
|
2351
2380
|
return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
|
|
2352
2381
|
}
|
|
2353
|
-
function
|
|
2382
|
+
function Ut(e) {
|
|
2354
2383
|
return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
|
|
2355
2384
|
}
|
|
2356
|
-
function
|
|
2385
|
+
function Wt({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: o = !1, skeletonRows: s = 5, empty: c = "No records found.", emptyFiltered: l, sourceCount: u, rowActions: d, rowActionsLabel: p, pagination: m, ariaLabel: h, className: g = "", wrapperClassName: _ = "", selectable: v = !1, selectedIds: y, onToggleRow: b, onToggleAll: x, renderExpanded: S, ...C }) {
|
|
2357
2386
|
U("AppDataTable", C);
|
|
2358
2387
|
let w = typeof S == "function", [O, k] = f(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
|
|
2359
2388
|
let n = new Set(t);
|
|
@@ -2390,7 +2419,7 @@ function Bt({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
2390
2419
|
e.map((e, t) => {
|
|
2391
2420
|
let n = !!(e.sortable && a), r = i && i.key === e.key;
|
|
2392
2421
|
return /* @__PURE__ */ D("th", {
|
|
2393
|
-
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") +
|
|
2422
|
+
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Ht(e.align),
|
|
2394
2423
|
style: e.width ? { width: e.width } : void 0,
|
|
2395
2424
|
tabIndex: n ? 0 : void 0,
|
|
2396
2425
|
"aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
|
|
@@ -2417,7 +2446,7 @@ function Bt({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
2417
2446
|
children: "Actions"
|
|
2418
2447
|
})
|
|
2419
2448
|
}))
|
|
2420
|
-
] }) }), /* @__PURE__ */ E("tbody", { children: o ? /* @__PURE__ */ E(
|
|
2449
|
+
] }) }), /* @__PURE__ */ E("tbody", { children: o ? /* @__PURE__ */ E(It, {
|
|
2421
2450
|
rows: s,
|
|
2422
2451
|
cols: j
|
|
2423
2452
|
}) : n?.length ? n.map((n, i) => {
|
|
@@ -2451,9 +2480,9 @@ function Bt({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
2451
2480
|
})
|
|
2452
2481
|
}),
|
|
2453
2482
|
e.map((e, t) => /* @__PURE__ */ E("td", {
|
|
2454
|
-
className: (t === 0 ? "wui-name-cell " : "") +
|
|
2483
|
+
className: (t === 0 ? "wui-name-cell " : "") + Ht(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
|
|
2455
2484
|
style: e.cellStyle,
|
|
2456
|
-
children: e.render ? e.render(n) :
|
|
2485
|
+
children: e.render ? e.render(n) : Ut(n[e.key])
|
|
2457
2486
|
}, e.key)),
|
|
2458
2487
|
d && /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E("div", {
|
|
2459
2488
|
className: "u-row-actions",
|
|
@@ -2476,7 +2505,7 @@ function Bt({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
2476
2505
|
children: I
|
|
2477
2506
|
}) : I
|
|
2478
2507
|
})]
|
|
2479
|
-
}), m && !o && m.total > 0 && /* @__PURE__ */ E(
|
|
2508
|
+
}), m && !o && m.total > 0 && /* @__PURE__ */ E(Vt, {
|
|
2480
2509
|
page: m.page,
|
|
2481
2510
|
totalPages: m.totalPages,
|
|
2482
2511
|
pageSize: m.pageSize,
|
|
@@ -2489,7 +2518,7 @@ function Bt({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
2489
2518
|
}
|
|
2490
2519
|
//#endregion
|
|
2491
2520
|
//#region src/components/AppDatePicker.jsx
|
|
2492
|
-
var
|
|
2521
|
+
var Gt = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, placeholder: u = "Enter Date", disabled: d, size: f, firstDay: p, id: m, ariaLabel: h, className: g = "", fieldClassName: _ = "", ...v }, y) {
|
|
2493
2522
|
U("AppDatePicker", v);
|
|
2494
2523
|
let b = s(), x = m || b, { setRef: S } = Q({
|
|
2495
2524
|
ref: y,
|
|
@@ -2533,7 +2562,7 @@ var Vt = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
2533
2562
|
})
|
|
2534
2563
|
]
|
|
2535
2564
|
});
|
|
2536
|
-
}),
|
|
2565
|
+
}), Kt = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: p = "Start – End", disabled: m, size: h, firstDay: g, id: _, ariaLabel: v, className: y = "", fieldClassName: b = "", ...x }, S) {
|
|
2537
2566
|
U("AppDateRangePicker", x);
|
|
2538
2567
|
let C = s(), w = _ || C, { setRef: T, innerRef: O } = Q({
|
|
2539
2568
|
ref: S,
|
|
@@ -2594,12 +2623,12 @@ var Vt = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
2594
2623
|
});
|
|
2595
2624
|
//#endregion
|
|
2596
2625
|
//#region src/lib/emptyValue.js
|
|
2597
|
-
function
|
|
2626
|
+
function qt(e) {
|
|
2598
2627
|
return e == null || e === "";
|
|
2599
2628
|
}
|
|
2600
2629
|
//#endregion
|
|
2601
2630
|
//#region src/components/AppDescriptions.jsx
|
|
2602
|
-
function
|
|
2631
|
+
function Jt({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
|
|
2603
2632
|
return U("AppDescriptions", o), /* @__PURE__ */ D("div", {
|
|
2604
2633
|
className: [
|
|
2605
2634
|
"descs",
|
|
@@ -2615,7 +2644,7 @@ function Wt({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
2615
2644
|
}), /* @__PURE__ */ E("dl", {
|
|
2616
2645
|
className: "descs-list",
|
|
2617
2646
|
children: e.map((e, t) => {
|
|
2618
|
-
let n =
|
|
2647
|
+
let n = qt(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
|
|
2619
2648
|
return /* @__PURE__ */ D("div", {
|
|
2620
2649
|
className: "descs-item",
|
|
2621
2650
|
style: { "--descs-span": r },
|
|
@@ -2633,18 +2662,18 @@ function Wt({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
2633
2662
|
}
|
|
2634
2663
|
//#endregion
|
|
2635
2664
|
//#region src/components/AppDropdown.jsx
|
|
2636
|
-
var
|
|
2637
|
-
function
|
|
2665
|
+
var Yt = !1;
|
|
2666
|
+
function Xt() {
|
|
2638
2667
|
let e = !0;
|
|
2639
2668
|
try {
|
|
2640
2669
|
e = process.env.NODE_ENV !== "production";
|
|
2641
2670
|
} catch {
|
|
2642
2671
|
e = !0;
|
|
2643
2672
|
}
|
|
2644
|
-
!e ||
|
|
2673
|
+
!e || Yt || (Yt = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
|
|
2645
2674
|
}
|
|
2646
|
-
function
|
|
2647
|
-
U("AppDropdown", p), !d && !i && !r &&
|
|
2675
|
+
function Zt({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: s = [], menuClassName: c = "", linkComponent: l, children: u, trigger: d, ...p }) {
|
|
2676
|
+
U("AppDropdown", p), !d && !i && !r && Xt();
|
|
2648
2677
|
let m = n ?? (d ? "wui-dropdown-trigger" : "topbar-icon-btn"), [h, g] = f(!1);
|
|
2649
2678
|
return o(() => {
|
|
2650
2679
|
if (!h) return;
|
|
@@ -2661,7 +2690,7 @@ function qt({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
2661
2690
|
onToggle: (e) => g(e),
|
|
2662
2691
|
...p,
|
|
2663
2692
|
children: [/* @__PURE__ */ E(v.Toggle, {
|
|
2664
|
-
as:
|
|
2693
|
+
as: Qt,
|
|
2665
2694
|
icon: e,
|
|
2666
2695
|
iconSize: t,
|
|
2667
2696
|
btnClassName: m,
|
|
@@ -2697,7 +2726,7 @@ function qt({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
2697
2726
|
})]
|
|
2698
2727
|
});
|
|
2699
2728
|
}
|
|
2700
|
-
var
|
|
2729
|
+
var Qt = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
|
|
2701
2730
|
return /* @__PURE__ */ E("button", {
|
|
2702
2731
|
ref: s,
|
|
2703
2732
|
type: "button",
|
|
@@ -2712,7 +2741,7 @@ var Jt = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
|
|
|
2712
2741
|
});
|
|
2713
2742
|
//#endregion
|
|
2714
2743
|
//#region src/components/AppFeedback.jsx
|
|
2715
|
-
function
|
|
2744
|
+
function $t({ onSubmit: e, surface: t, screen: n, heading: r = "Share feedback", label: i = "Feedback", placeholder: a, collectEmail: o = !1, position: s = "bottom-right", className: c = "", style: l, ...u }) {
|
|
2716
2745
|
U("AppFeedback", u);
|
|
2717
2746
|
let { setRef: d, innerRef: f } = Q({ on: { "wui-feedback-submit": (t) => {
|
|
2718
2747
|
let n = f.current;
|
|
@@ -2734,16 +2763,16 @@ function Yt({ onSubmit: e, surface: t, screen: n, heading: r = "Share feedback",
|
|
|
2734
2763
|
}
|
|
2735
2764
|
//#endregion
|
|
2736
2765
|
//#region src/lib/fileItem.js
|
|
2737
|
-
function
|
|
2766
|
+
function en(e) {
|
|
2738
2767
|
return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
|
|
2739
2768
|
}
|
|
2740
|
-
function
|
|
2769
|
+
function tn(e) {
|
|
2741
2770
|
return e instanceof File ? e.name : e?.name;
|
|
2742
2771
|
}
|
|
2743
|
-
function
|
|
2772
|
+
function nn(e) {
|
|
2744
2773
|
return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
|
|
2745
2774
|
}
|
|
2746
|
-
function
|
|
2775
|
+
function rn(e, t) {
|
|
2747
2776
|
let [n, r] = f(null);
|
|
2748
2777
|
return o(() => {
|
|
2749
2778
|
if (!t) {
|
|
@@ -2759,8 +2788,8 @@ function $t(e, t) {
|
|
|
2759
2788
|
}
|
|
2760
2789
|
//#endregion
|
|
2761
2790
|
//#region src/lib/FileItemRow.jsx
|
|
2762
|
-
function
|
|
2763
|
-
let i =
|
|
2791
|
+
function an({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
2792
|
+
let i = rn(e, t), a = tn(e), o = nn(e);
|
|
2764
2793
|
return /* @__PURE__ */ D("div", {
|
|
2765
2794
|
className: "attach-item",
|
|
2766
2795
|
children: [
|
|
@@ -2799,7 +2828,7 @@ function en({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
|
2799
2828
|
}
|
|
2800
2829
|
//#endregion
|
|
2801
2830
|
//#region src/components/AppFileAttachment.jsx
|
|
2802
|
-
function
|
|
2831
|
+
function on({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = k, maxSizeMb: o = A, optional: c = !1, error: l, id: u, ...d }) {
|
|
2803
2832
|
U("AppFileAttachment", d);
|
|
2804
2833
|
let p = s(), m = u || p, [h, g] = f(""), _ = i && Array.isArray(t) ? t : t ? [t] : [], v = F(a), y = (e) => e instanceof File ? P(e) : v || P(e), b = !i && _.length === 1 && y(_[0]);
|
|
2805
2834
|
function x(e) {
|
|
@@ -2818,8 +2847,8 @@ function tn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
2818
2847
|
s.push(e);
|
|
2819
2848
|
}
|
|
2820
2849
|
if (g(c), s.length) if (i) {
|
|
2821
|
-
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(
|
|
2822
|
-
r(e.concat(s.filter((e) => !n.has(
|
|
2850
|
+
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(en));
|
|
2851
|
+
r(e.concat(s.filter((e) => !n.has(en(e)))));
|
|
2823
2852
|
} else r(s[0]);
|
|
2824
2853
|
}
|
|
2825
2854
|
function S(e) {
|
|
@@ -2879,17 +2908,17 @@ function tn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
2879
2908
|
onChange: x,
|
|
2880
2909
|
...d
|
|
2881
2910
|
})] }),
|
|
2882
|
-
b ? /* @__PURE__ */ E(
|
|
2911
|
+
b ? /* @__PURE__ */ E(sn, {
|
|
2883
2912
|
item: _[0],
|
|
2884
2913
|
isImage: !0,
|
|
2885
2914
|
onRemove: () => S(0)
|
|
2886
2915
|
}) : _.length > 0 && /* @__PURE__ */ E("div", {
|
|
2887
2916
|
className: "attach-list",
|
|
2888
|
-
children: _.map((e, t) => /* @__PURE__ */ E(
|
|
2917
|
+
children: _.map((e, t) => /* @__PURE__ */ E(an, {
|
|
2889
2918
|
item: e,
|
|
2890
2919
|
isImage: y(e),
|
|
2891
2920
|
onRemove: () => S(t)
|
|
2892
|
-
},
|
|
2921
|
+
}, en(e)))
|
|
2893
2922
|
}),
|
|
2894
2923
|
C && /* @__PURE__ */ E("div", {
|
|
2895
2924
|
className: "field-error",
|
|
@@ -2899,8 +2928,8 @@ function tn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
2899
2928
|
]
|
|
2900
2929
|
});
|
|
2901
2930
|
}
|
|
2902
|
-
function
|
|
2903
|
-
let r =
|
|
2931
|
+
function sn({ item: e, isImage: t, onRemove: n }) {
|
|
2932
|
+
let r = rn(e, t), i = tn(e), a = nn(e);
|
|
2904
2933
|
return /* @__PURE__ */ D("div", {
|
|
2905
2934
|
className: "attach-preview",
|
|
2906
2935
|
children: [/* @__PURE__ */ D("div", {
|
|
@@ -2932,7 +2961,7 @@ function nn({ item: e, isImage: t, onRemove: n }) {
|
|
|
2932
2961
|
}
|
|
2933
2962
|
//#endregion
|
|
2934
2963
|
//#region src/components/AppFilePicker.jsx
|
|
2935
|
-
function
|
|
2964
|
+
function cn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: u = A, required: p, error: m, hint: h, loading: g = !1, className: _ = "", fieldClassName: v = "", style: y, ...b }) {
|
|
2936
2965
|
U("AppFilePicker", b);
|
|
2937
2966
|
let [x, S] = f(null), [C, w] = f(!1), [T, O] = f(""), k = d(null), M = s(), N = r || M;
|
|
2938
2967
|
o(() => {
|
|
@@ -2942,16 +2971,16 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
2942
2971
|
}
|
|
2943
2972
|
S(null);
|
|
2944
2973
|
}, [t, a]);
|
|
2945
|
-
let L = a ? Array.isArray(t) ? t : t ? [t] : [] : [], R = m || T, z = R ? `${N}-error` : void 0, ee = h && !R ? `${N}-hint` : void 0, B = z || ee, V = F(l), te = !a && !!t, H = te && (t instanceof File ? P(t) : V || P(t)), ne = t?.name, re = H ? t?.url || x : null, ie = H ? "image" : "file",
|
|
2974
|
+
let L = a ? Array.isArray(t) ? t : t ? [t] : [] : [], R = m || T, z = R ? `${N}-error` : void 0, ee = h && !R ? `${N}-hint` : void 0, B = z || ee, V = F(l), te = !a && !!t, H = te && (t instanceof File ? P(t) : V || P(t)), ne = t?.name, re = H ? t?.url || x : null, ie = H ? "image" : "file", ae = e ? `Change ${e}` : `Change ${ie}`, oe = e ? `Remove ${e}` : `Remove ${ie}`, W = e ? `${e} preview` : `Selected ${ie} preview`, se = (e) => {
|
|
2946
2975
|
let t = I(e, {
|
|
2947
2976
|
accept: l,
|
|
2948
2977
|
maxSizeMb: u
|
|
2949
2978
|
});
|
|
2950
2979
|
return t ? (O(t), !1) : (O(""), i(e), !0);
|
|
2951
|
-
},
|
|
2980
|
+
}, ce = (e) => {
|
|
2952
2981
|
let n = Array.from(e || []);
|
|
2953
2982
|
if (!n.length) return;
|
|
2954
|
-
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(
|
|
2983
|
+
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(en)), o = "", s = [];
|
|
2955
2984
|
for (let e of n) {
|
|
2956
2985
|
let t = I(e, {
|
|
2957
2986
|
accept: l,
|
|
@@ -2961,35 +2990,35 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
2961
2990
|
o ||= t;
|
|
2962
2991
|
continue;
|
|
2963
2992
|
}
|
|
2964
|
-
a.has(
|
|
2993
|
+
a.has(en(e)) || (a.add(en(e)), s.push(e));
|
|
2965
2994
|
}
|
|
2966
2995
|
let d = r.concat(s);
|
|
2967
2996
|
c && d.length > c && (d = d.slice(0, c), o ||= `Up to ${c} files.`), O(o), i(d);
|
|
2968
|
-
},
|
|
2997
|
+
}, G = (e) => {
|
|
2969
2998
|
if (a) {
|
|
2970
|
-
|
|
2999
|
+
ce(e.target.files);
|
|
2971
3000
|
return;
|
|
2972
3001
|
}
|
|
2973
3002
|
let t = e.target.files?.[0] || null;
|
|
2974
3003
|
t && (se(t) || (e.target.value = ""));
|
|
2975
|
-
},
|
|
3004
|
+
}, le = (e) => {
|
|
2976
3005
|
if (e.preventDefault(), w(!1), g) return;
|
|
2977
3006
|
if (a) {
|
|
2978
|
-
|
|
3007
|
+
ce(e.dataTransfer.files);
|
|
2979
3008
|
return;
|
|
2980
3009
|
}
|
|
2981
3010
|
let t = e.dataTransfer.files?.[0];
|
|
2982
3011
|
t && se(t);
|
|
2983
|
-
},
|
|
3012
|
+
}, ue = (e) => {
|
|
2984
3013
|
O(""), i(L.filter((t, n) => n !== e));
|
|
2985
|
-
},
|
|
3014
|
+
}, de = () => k.current?.click(), fe = g ? /* @__PURE__ */ E("span", {
|
|
2986
3015
|
className: "wui-file-busy",
|
|
2987
3016
|
children: /* @__PURE__ */ E("span", {
|
|
2988
3017
|
className: "spinner-border spinner-border-sm",
|
|
2989
3018
|
role: "status",
|
|
2990
3019
|
"aria-label": "Loading"
|
|
2991
3020
|
})
|
|
2992
|
-
}) : null,
|
|
3021
|
+
}) : null, pe = /* @__PURE__ */ E("input", {
|
|
2993
3022
|
id: N,
|
|
2994
3023
|
name: n,
|
|
2995
3024
|
ref: k,
|
|
@@ -3002,7 +3031,7 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3002
3031
|
onClick: (e) => {
|
|
3003
3032
|
e.currentTarget.value = "";
|
|
3004
3033
|
},
|
|
3005
|
-
onChange:
|
|
3034
|
+
onChange: G,
|
|
3006
3035
|
...b
|
|
3007
3036
|
});
|
|
3008
3037
|
return /* @__PURE__ */ D("div", {
|
|
@@ -3021,12 +3050,12 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3021
3050
|
/* @__PURE__ */ D("button", {
|
|
3022
3051
|
type: "button",
|
|
3023
3052
|
className: "file-preview-open",
|
|
3024
|
-
"aria-label":
|
|
3025
|
-
onClick:
|
|
3053
|
+
"aria-label": ae,
|
|
3054
|
+
onClick: de,
|
|
3026
3055
|
disabled: g,
|
|
3027
3056
|
children: [H && re ? /* @__PURE__ */ E("img", {
|
|
3028
3057
|
src: re,
|
|
3029
|
-
alt:
|
|
3058
|
+
alt: W,
|
|
3030
3059
|
className: "file-preview-img"
|
|
3031
3060
|
}) : /* @__PURE__ */ D("span", {
|
|
3032
3061
|
className: "file-preview-file",
|
|
@@ -3052,20 +3081,19 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3052
3081
|
})
|
|
3053
3082
|
})]
|
|
3054
3083
|
}),
|
|
3055
|
-
/* @__PURE__ */ E("button", {
|
|
3084
|
+
K(/* @__PURE__ */ E("button", {
|
|
3056
3085
|
type: "button",
|
|
3057
3086
|
className: "file-preview-remove",
|
|
3058
|
-
"aria-label":
|
|
3059
|
-
title: ae,
|
|
3087
|
+
"aria-label": oe,
|
|
3060
3088
|
onClick: () => i(null),
|
|
3061
3089
|
disabled: g,
|
|
3062
3090
|
children: /* @__PURE__ */ E(Y, {
|
|
3063
3091
|
name: "x",
|
|
3064
3092
|
size: 16
|
|
3065
3093
|
})
|
|
3066
|
-
}),
|
|
3067
|
-
|
|
3068
|
-
|
|
3094
|
+
}), oe),
|
|
3095
|
+
pe,
|
|
3096
|
+
fe
|
|
3069
3097
|
]
|
|
3070
3098
|
}) : /* @__PURE__ */ D("div", {
|
|
3071
3099
|
className: `file-input file-input-tall${C ? " dragging" : ""}${R ? " error" : ""}${a && L.length > 0 ? " has-files" : ""}${_ ? ` ${_}` : ""}`,
|
|
@@ -3077,7 +3105,7 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3077
3105
|
onDragLeave: (e) => {
|
|
3078
3106
|
e.preventDefault(), w(!1);
|
|
3079
3107
|
},
|
|
3080
|
-
onDrop:
|
|
3108
|
+
onDrop: le,
|
|
3081
3109
|
children: [
|
|
3082
3110
|
/* @__PURE__ */ D("label", {
|
|
3083
3111
|
htmlFor: N,
|
|
@@ -3108,16 +3136,16 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3108
3136
|
})
|
|
3109
3137
|
]
|
|
3110
3138
|
}),
|
|
3139
|
+
pe,
|
|
3111
3140
|
fe,
|
|
3112
|
-
de,
|
|
3113
3141
|
a && L.length > 0 && /* @__PURE__ */ E("div", {
|
|
3114
3142
|
className: "attach-list",
|
|
3115
|
-
children: L.map((e, t) => /* @__PURE__ */ E(
|
|
3143
|
+
children: L.map((e, t) => /* @__PURE__ */ E(an, {
|
|
3116
3144
|
item: e,
|
|
3117
3145
|
isImage: e instanceof File ? P(e) : V || P(e),
|
|
3118
3146
|
noun: "file",
|
|
3119
|
-
onRemove: () =>
|
|
3120
|
-
},
|
|
3147
|
+
onRemove: () => ue(t)
|
|
3148
|
+
}, en(e)))
|
|
3121
3149
|
})
|
|
3122
3150
|
]
|
|
3123
3151
|
}),
|
|
@@ -3135,7 +3163,7 @@ function rn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3135
3163
|
}
|
|
3136
3164
|
//#endregion
|
|
3137
3165
|
//#region src/components/AppFloatingDock.jsx
|
|
3138
|
-
function
|
|
3166
|
+
function ln({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
|
|
3139
3167
|
return U("AppFloatingDock", s), /* @__PURE__ */ E("wui-dock", {
|
|
3140
3168
|
role: "navigation",
|
|
3141
3169
|
"aria-label": n,
|
|
@@ -3177,7 +3205,7 @@ function an({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
|
|
|
3177
3205
|
}
|
|
3178
3206
|
//#endregion
|
|
3179
3207
|
//#region src/components/AppFormActions.jsx
|
|
3180
|
-
function
|
|
3208
|
+
function un({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
|
|
3181
3209
|
return U("AppFormActions", i), /* @__PURE__ */ E("div", {
|
|
3182
3210
|
className: [
|
|
3183
3211
|
"form-actions",
|
|
@@ -3191,7 +3219,7 @@ function on({ children: e, sticky: t = !1, align: n = "end", className: r = "",
|
|
|
3191
3219
|
}
|
|
3192
3220
|
//#endregion
|
|
3193
3221
|
//#region src/components/AppFormRow.jsx
|
|
3194
|
-
function
|
|
3222
|
+
function dn({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
3195
3223
|
U("AppFormRow", r);
|
|
3196
3224
|
let { style: i, ...a } = r;
|
|
3197
3225
|
return /* @__PURE__ */ E("div", {
|
|
@@ -3206,7 +3234,7 @@ function sn({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
|
3206
3234
|
}
|
|
3207
3235
|
//#endregion
|
|
3208
3236
|
//#region src/components/AppFormSection.jsx
|
|
3209
|
-
function
|
|
3237
|
+
function fn({ children: e, title: t, description: n, className: r = "", ...i }) {
|
|
3210
3238
|
return U("AppFormSection", i), /* @__PURE__ */ D("section", {
|
|
3211
3239
|
className: ["form-section", r].filter(Boolean).join(" "),
|
|
3212
3240
|
...i,
|
|
@@ -3227,12 +3255,12 @@ function cn({ children: e, title: t, description: n, className: r = "", ...i })
|
|
|
3227
3255
|
}
|
|
3228
3256
|
//#endregion
|
|
3229
3257
|
//#region src/components/AppInfoList.jsx
|
|
3230
|
-
function
|
|
3258
|
+
function pn({ items: e = [], className: t = "", ...n }) {
|
|
3231
3259
|
return U("AppInfoList", n), /* @__PURE__ */ E("div", {
|
|
3232
3260
|
className: `info-list${t ? ` ${t}` : ""}`,
|
|
3233
3261
|
...n,
|
|
3234
3262
|
children: e.map((e, t) => {
|
|
3235
|
-
let n =
|
|
3263
|
+
let n = qt(e.value), r = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
3236
3264
|
className: "info-icon",
|
|
3237
3265
|
children: X(e.icon, { size: 16 })
|
|
3238
3266
|
}), /* @__PURE__ */ D("span", {
|
|
@@ -3258,23 +3286,23 @@ function ln({ items: e = [], className: t = "", ...n }) {
|
|
|
3258
3286
|
}
|
|
3259
3287
|
//#endregion
|
|
3260
3288
|
//#region src/components/AppKpiTile.jsx
|
|
3261
|
-
var
|
|
3262
|
-
function
|
|
3263
|
-
if (!e || e.length < 2) return `0,${
|
|
3264
|
-
let t = Math.min(...e), n = Math.max(...e) - t, r =
|
|
3265
|
-
return e.map((e, i) => `${i * r},${n === 0 ?
|
|
3289
|
+
var mn = 48, hn = 16;
|
|
3290
|
+
function gn(e) {
|
|
3291
|
+
if (!e || e.length < 2) return `0,${hn / 2} ${mn},${hn / 2}`;
|
|
3292
|
+
let t = Math.min(...e), n = Math.max(...e) - t, r = mn / (e.length - 1);
|
|
3293
|
+
return e.map((e, i) => `${i * r},${n === 0 ? hn / 2 : hn - (e - t) / n * hn}`).join(" ");
|
|
3266
3294
|
}
|
|
3267
|
-
function
|
|
3295
|
+
function _n(e) {
|
|
3268
3296
|
if (typeof e != "string") return "flat";
|
|
3269
3297
|
let t = e.trim();
|
|
3270
3298
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
3271
3299
|
}
|
|
3272
|
-
function
|
|
3300
|
+
function vn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: p, linkComponent: m, className: h = "", style: g, iconClassName: _ = "", labelClassName: v = "", valueClassName: y = "", captionClassName: b = "", deltaClassName: x = "", sparklineClassName: S = "", ...C }) {
|
|
3273
3301
|
U("AppKpiTile", C);
|
|
3274
3302
|
let w = `kpi${d ? " kpi-inline" : ""}${c === "filled" ? " kpi-filled" : c === "accent" ? " kpi-accent" : c === "spotlight" ? " kpi-spotlight" : ""}${l === "lg" ? " kpi-lg" : l === "sm" ? " kpi-sm" : ""}${f ? " kpi-attention" : ""}${h ? ` ${h}` : ""}`, T = typeof u == "number" && u > 0 ? {
|
|
3275
3303
|
...g,
|
|
3276
3304
|
"--wui-kpi-value-size": `${u}px`
|
|
3277
|
-
} : g, O = o ??
|
|
3305
|
+
} : g, O = o ?? _n(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
|
|
3278
3306
|
return p != null && (A = m ? {
|
|
3279
3307
|
as: m,
|
|
3280
3308
|
to: p
|
|
@@ -3312,12 +3340,12 @@ function mn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
3312
3340
|
}),
|
|
3313
3341
|
s && s.length > 0 && /* @__PURE__ */ E("svg", {
|
|
3314
3342
|
className: `kpi-sparkline${S ? ` ${S}` : ""}`,
|
|
3315
|
-
width:
|
|
3316
|
-
height:
|
|
3317
|
-
viewBox: `0 0 ${
|
|
3343
|
+
width: mn,
|
|
3344
|
+
height: hn,
|
|
3345
|
+
viewBox: `0 0 ${mn} ${hn}`,
|
|
3318
3346
|
"aria-hidden": "true",
|
|
3319
3347
|
children: /* @__PURE__ */ E("polyline", {
|
|
3320
|
-
points:
|
|
3348
|
+
points: gn(s),
|
|
3321
3349
|
stroke: "currentColor",
|
|
3322
3350
|
fill: "none"
|
|
3323
3351
|
})
|
|
@@ -3327,11 +3355,11 @@ function mn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
3327
3355
|
}
|
|
3328
3356
|
//#endregion
|
|
3329
3357
|
//#region src/components/AppLink.jsx
|
|
3330
|
-
var
|
|
3358
|
+
var yn = {
|
|
3331
3359
|
sm: 13,
|
|
3332
3360
|
md: 15,
|
|
3333
3361
|
lg: 18
|
|
3334
|
-
},
|
|
3362
|
+
}, bn = [
|
|
3335
3363
|
"underline",
|
|
3336
3364
|
"underline-center",
|
|
3337
3365
|
"static",
|
|
@@ -3345,35 +3373,35 @@ var hn = {
|
|
|
3345
3373
|
"shine",
|
|
3346
3374
|
"none"
|
|
3347
3375
|
];
|
|
3348
|
-
function
|
|
3376
|
+
function xn(e, t, n) {
|
|
3349
3377
|
if (!e) return null;
|
|
3350
3378
|
let r = `wui-link__ic wui-link__ic--${t}`;
|
|
3351
3379
|
return typeof e == "string" ? /* @__PURE__ */ E("span", {
|
|
3352
3380
|
className: r,
|
|
3353
3381
|
children: /* @__PURE__ */ E(Y, {
|
|
3354
3382
|
name: e,
|
|
3355
|
-
size:
|
|
3383
|
+
size: yn[n] ?? yn.md
|
|
3356
3384
|
})
|
|
3357
3385
|
}) : /* @__PURE__ */ E("span", {
|
|
3358
3386
|
className: r,
|
|
3359
3387
|
children: e
|
|
3360
3388
|
});
|
|
3361
3389
|
}
|
|
3362
|
-
function
|
|
3363
|
-
U("AppLink", d), W("AppLink", "animation", r,
|
|
3364
|
-
let f =
|
|
3390
|
+
function Sn({ children: e, label: t, href: n, animation: r = "underline", leftIcon: i = null, rightIcon: a = null, size: o = "md", external: s = !1, disabled: c = !1, linkComponent: l, className: u = "", ...d }) {
|
|
3391
|
+
U("AppLink", d), W("AppLink", "animation", r, bn), W("AppLink", "size", o, Object.keys(yn));
|
|
3392
|
+
let f = bn.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
|
|
3365
3393
|
"wui-link",
|
|
3366
3394
|
`wui-link--${f}`,
|
|
3367
3395
|
o === "md" ? "" : `wui-link--${o}`,
|
|
3368
3396
|
c ? "is-disabled" : "",
|
|
3369
3397
|
u
|
|
3370
3398
|
].filter(Boolean).join(" "), h = /* @__PURE__ */ D(T, { children: [
|
|
3371
|
-
|
|
3399
|
+
xn(i, "left", o),
|
|
3372
3400
|
/* @__PURE__ */ E("span", {
|
|
3373
3401
|
className: "wui-link__label",
|
|
3374
3402
|
children: e ?? t
|
|
3375
3403
|
}),
|
|
3376
|
-
|
|
3404
|
+
xn(p, "right", o)
|
|
3377
3405
|
] });
|
|
3378
3406
|
return c ? /* @__PURE__ */ E("span", {
|
|
3379
3407
|
className: m,
|
|
@@ -3396,13 +3424,13 @@ function vn({ children: e, label: t, href: n, animation: r = "underline", leftIc
|
|
|
3396
3424
|
}
|
|
3397
3425
|
//#endregion
|
|
3398
3426
|
//#region src/components/AppLogoPicker.jsx
|
|
3399
|
-
var
|
|
3427
|
+
var Cn = {
|
|
3400
3428
|
sm: 72,
|
|
3401
3429
|
md: 120,
|
|
3402
3430
|
lg: 160
|
|
3403
3431
|
};
|
|
3404
|
-
function
|
|
3405
|
-
U("AppLogoPicker", k), W("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(
|
|
3432
|
+
function wn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: u = A, overlayIcon: p = "image", overlayLabel: m = "Update photo", ariaLabel: h = "Upload photo", label: g, hint: _, error: v, layout: y = "stacked", title: b, subtitle: x, required: S = !1, variant: C = "initials", size: w = "md", shape: T = "circle", className: O = "", ...k }) {
|
|
3433
|
+
U("AppLogoPicker", k), W("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(Cn));
|
|
3406
3434
|
let j = d(null), M = s(), [N, P] = f(null), [F, L] = f(""), [R, z] = f(!1), [ee, B] = f(!1);
|
|
3407
3435
|
o(() => () => N && URL.revokeObjectURL(N), [N]), o(() => {
|
|
3408
3436
|
P(null), z(!1);
|
|
@@ -3422,24 +3450,24 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3422
3450
|
}, se = (e) => {
|
|
3423
3451
|
let t = e.target.files?.[0];
|
|
3424
3452
|
e.target.value = "", t && oe(t);
|
|
3425
|
-
},
|
|
3453
|
+
}, ce = (e) => {
|
|
3426
3454
|
if (e.preventDefault(), B(!1), V) return;
|
|
3427
3455
|
let t = e.dataTransfer.files?.[0];
|
|
3428
3456
|
t && oe(t);
|
|
3429
|
-
},
|
|
3457
|
+
}, G = () => {
|
|
3430
3458
|
P(null), L(""), z(!1), j.current && (j.current.value = ""), i?.();
|
|
3431
|
-
},
|
|
3459
|
+
}, le = typeof w == "number" ? w : Cn[w] ?? Cn.md, ue = Math.max(14, Math.round(le * .18)), de = Math.round(le * .5), fe = [
|
|
3432
3460
|
"set-uploader",
|
|
3433
3461
|
C === "avatar" ? "set-uploader--avatar" : "",
|
|
3434
3462
|
T === "rounded" ? "set-uploader--rounded" : T === "square" ? "set-uploader--square" : "",
|
|
3435
3463
|
ee && "is-dragging"
|
|
3436
|
-
].filter(Boolean).join(" "),
|
|
3464
|
+
].filter(Boolean).join(" "), pe = y === "inline", me = y === "profile", he = /* @__PURE__ */ D("div", {
|
|
3437
3465
|
className: "set-uploader-shell",
|
|
3438
|
-
style: { "--wui-logo-size": `${
|
|
3466
|
+
style: { "--wui-logo-size": `${le}px` },
|
|
3439
3467
|
children: [
|
|
3440
3468
|
/* @__PURE__ */ E("button", {
|
|
3441
3469
|
type: "button",
|
|
3442
|
-
className:
|
|
3470
|
+
className: fe,
|
|
3443
3471
|
onClick: ae,
|
|
3444
3472
|
disabled: V,
|
|
3445
3473
|
"aria-busy": a || void 0,
|
|
@@ -3451,7 +3479,7 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3451
3479
|
onDragLeave: (e) => {
|
|
3452
3480
|
e.preventDefault(), B(!1);
|
|
3453
3481
|
},
|
|
3454
|
-
onDrop:
|
|
3482
|
+
onDrop: ce,
|
|
3455
3483
|
...k,
|
|
3456
3484
|
children: /* @__PURE__ */ D("span", {
|
|
3457
3485
|
className: "set-uploader-ring",
|
|
@@ -3465,37 +3493,36 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3465
3493
|
className: "set-uploader-logo",
|
|
3466
3494
|
children: t || C === "avatar" && /* @__PURE__ */ E(Y, {
|
|
3467
3495
|
name: "user",
|
|
3468
|
-
size:
|
|
3496
|
+
size: de
|
|
3469
3497
|
})
|
|
3470
3498
|
}), a ? /* @__PURE__ */ E("span", {
|
|
3471
3499
|
className: "set-uploader-overlay is-loading",
|
|
3472
3500
|
"aria-hidden": "true",
|
|
3473
3501
|
children: /* @__PURE__ */ E(Y, {
|
|
3474
3502
|
name: "refresh-cw",
|
|
3475
|
-
size:
|
|
3503
|
+
size: ue,
|
|
3476
3504
|
className: "wui-spin"
|
|
3477
3505
|
})
|
|
3478
3506
|
}) : !c && /* @__PURE__ */ D("span", {
|
|
3479
3507
|
className: "set-uploader-overlay",
|
|
3480
3508
|
children: [/* @__PURE__ */ E(Y, {
|
|
3481
3509
|
name: p,
|
|
3482
|
-
size:
|
|
3510
|
+
size: ue
|
|
3483
3511
|
}), /* @__PURE__ */ E("span", { children: m })]
|
|
3484
3512
|
})]
|
|
3485
3513
|
})
|
|
3486
3514
|
}),
|
|
3487
|
-
/* @__PURE__ */ E("button", {
|
|
3515
|
+
K(/* @__PURE__ */ E("button", {
|
|
3488
3516
|
type: "button",
|
|
3489
3517
|
className: "set-uploader-remove",
|
|
3490
3518
|
hidden: !ie,
|
|
3491
3519
|
"aria-label": "Remove photo",
|
|
3492
|
-
|
|
3493
|
-
onClick: K,
|
|
3520
|
+
onClick: G,
|
|
3494
3521
|
children: /* @__PURE__ */ E(Y, {
|
|
3495
3522
|
name: "x",
|
|
3496
3523
|
size: 14
|
|
3497
3524
|
})
|
|
3498
|
-
}),
|
|
3525
|
+
}), ie ? "Remove photo" : null),
|
|
3499
3526
|
/* @__PURE__ */ E("input", {
|
|
3500
3527
|
id: M,
|
|
3501
3528
|
ref: j,
|
|
@@ -3507,19 +3534,19 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3507
3534
|
disabled: V
|
|
3508
3535
|
})
|
|
3509
3536
|
]
|
|
3510
|
-
}),
|
|
3537
|
+
}), ge = _ && !H ? /* @__PURE__ */ E("div", {
|
|
3511
3538
|
className: "set-uploader-hint",
|
|
3512
3539
|
id: ne,
|
|
3513
3540
|
children: _
|
|
3514
|
-
}) : null,
|
|
3541
|
+
}) : null, q = H ? /* @__PURE__ */ E("div", {
|
|
3515
3542
|
className: "field-error",
|
|
3516
3543
|
id: re,
|
|
3517
3544
|
children: H
|
|
3518
|
-
}) : null,
|
|
3545
|
+
}) : null, _e = g && /* @__PURE__ */ D("label", {
|
|
3519
3546
|
className: "label",
|
|
3520
3547
|
htmlFor: M,
|
|
3521
3548
|
children: [g, S && /* @__PURE__ */ E(Z, {})]
|
|
3522
|
-
}),
|
|
3549
|
+
}), ve = /* @__PURE__ */ D("div", {
|
|
3523
3550
|
className: "set-uploader-meta",
|
|
3524
3551
|
children: [
|
|
3525
3552
|
b && /* @__PURE__ */ E("div", {
|
|
@@ -3530,56 +3557,56 @@ function bn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3530
3557
|
className: "set-uploader-subtitle",
|
|
3531
3558
|
children: x
|
|
3532
3559
|
}),
|
|
3533
|
-
|
|
3534
|
-
|
|
3560
|
+
ge,
|
|
3561
|
+
q
|
|
3535
3562
|
]
|
|
3536
3563
|
});
|
|
3537
|
-
return
|
|
3564
|
+
return pe ? /* @__PURE__ */ D("div", {
|
|
3538
3565
|
className: `field set-uploader-field set-uploader-field--inline${O ? ` ${O}` : ""}`,
|
|
3539
|
-
children: [
|
|
3566
|
+
children: [_e, /* @__PURE__ */ D("div", {
|
|
3540
3567
|
className: "set-uploader-row",
|
|
3541
|
-
children: [
|
|
3568
|
+
children: [he, ve]
|
|
3542
3569
|
})]
|
|
3543
|
-
}) :
|
|
3570
|
+
}) : me ? /* @__PURE__ */ D("div", {
|
|
3544
3571
|
className: `field set-uploader-field set-uploader-field--profile${O ? ` ${O}` : ""}`,
|
|
3545
3572
|
children: [
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3573
|
+
_e,
|
|
3574
|
+
he,
|
|
3575
|
+
ve
|
|
3549
3576
|
]
|
|
3550
3577
|
}) : /* @__PURE__ */ D("div", {
|
|
3551
3578
|
className: `field set-uploader-field${O ? ` ${O}` : ""}`,
|
|
3552
3579
|
children: [
|
|
3553
|
-
|
|
3554
|
-
me,
|
|
3580
|
+
_e,
|
|
3555
3581
|
he,
|
|
3556
|
-
ge
|
|
3582
|
+
ge,
|
|
3583
|
+
q
|
|
3557
3584
|
]
|
|
3558
3585
|
});
|
|
3559
3586
|
}
|
|
3560
3587
|
//#endregion
|
|
3561
3588
|
//#region src/components/AppMeter.jsx
|
|
3562
|
-
var
|
|
3589
|
+
var Tn = [
|
|
3563
3590
|
"info",
|
|
3564
3591
|
"success",
|
|
3565
3592
|
"warning",
|
|
3566
3593
|
"danger",
|
|
3567
3594
|
"neutral"
|
|
3568
3595
|
];
|
|
3569
|
-
function
|
|
3596
|
+
function En(e, t, n) {
|
|
3570
3597
|
let r = n - t;
|
|
3571
3598
|
if (!(r > 0)) return 0;
|
|
3572
3599
|
let i = Math.min(100, Math.max(0, (e - t) / r * 100));
|
|
3573
3600
|
return Number(i.toFixed(2));
|
|
3574
3601
|
}
|
|
3575
|
-
function
|
|
3602
|
+
function Dn(e, t, n, r, i) {
|
|
3576
3603
|
if (t == null && n == null) return i;
|
|
3577
3604
|
let a = "mid";
|
|
3578
3605
|
return t != null && e <= t ? a = "low" : n != null && e >= n && (a = "high"), r === "low" ? a === "low" ? "success" : a === "high" ? "danger" : "warning" : a === "high" ? "success" : a === "low" ? "danger" : "warning";
|
|
3579
3606
|
}
|
|
3580
|
-
function
|
|
3607
|
+
function On({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum: i = "high", low: a, high: o, size: s = "md", label: c, showLabel: l = !1, className: u = "", ...d }) {
|
|
3581
3608
|
U("AppMeter", d);
|
|
3582
|
-
let f =
|
|
3609
|
+
let f = Dn(e, a, o, i, Tn.includes(r) ? r : "info"), p = En(e, t, n);
|
|
3583
3610
|
return /* @__PURE__ */ E("div", {
|
|
3584
3611
|
className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
|
|
3585
3612
|
role: "meter",
|
|
@@ -3597,20 +3624,20 @@ function wn({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
|
|
|
3597
3624
|
}
|
|
3598
3625
|
//#endregion
|
|
3599
3626
|
//#region src/components/AppMultiSelect.jsx
|
|
3600
|
-
var
|
|
3627
|
+
var kn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, allowCustom: f = !1, validateCustom: p, customPattern: m, customInvalidMessage: h, name: g, id: _, label: v, error: y, hint: b, required: x = !1, help: S, helpLabel: C = "More information", fieldClassName: w = "", ...T }, O) {
|
|
3601
3628
|
U("AppMultiSelect", T);
|
|
3602
3629
|
let k = s(), A = _ || k, { setRef: j, innerRef: M } = Q({
|
|
3603
3630
|
ref: O,
|
|
3604
3631
|
value: e,
|
|
3605
3632
|
onChange: t,
|
|
3606
|
-
readValue:
|
|
3607
|
-
writeValue:
|
|
3633
|
+
readValue: qe,
|
|
3634
|
+
writeValue: Je
|
|
3608
3635
|
});
|
|
3609
3636
|
return o(() => {
|
|
3610
3637
|
let e = M.current;
|
|
3611
3638
|
if (!e) return;
|
|
3612
3639
|
let t = n || [];
|
|
3613
|
-
|
|
3640
|
+
Ke(t, e.options) || (e.options = t);
|
|
3614
3641
|
}, [n, M]), o(() => {
|
|
3615
3642
|
let e = M.current;
|
|
3616
3643
|
e && (e.validateCustom = p ?? null);
|
|
@@ -3623,7 +3650,7 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3623
3650
|
children: [
|
|
3624
3651
|
v,
|
|
3625
3652
|
x && /* @__PURE__ */ E(Z, {}),
|
|
3626
|
-
S && /* @__PURE__ */ E(
|
|
3653
|
+
S && /* @__PURE__ */ E(He, {
|
|
3627
3654
|
label: C,
|
|
3628
3655
|
children: S
|
|
3629
3656
|
})
|
|
@@ -3660,7 +3687,7 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3660
3687
|
}) : null
|
|
3661
3688
|
]
|
|
3662
3689
|
});
|
|
3663
|
-
}),
|
|
3690
|
+
}), An = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: d, step: p = 1, precision: m = 0, unit: h, size: g = "md", id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, ...C }, w) {
|
|
3664
3691
|
U("AppNumberInput", C);
|
|
3665
3692
|
let T = s(), O = _ || T, k = (e) => {
|
|
3666
3693
|
if (m === 0) return Math.round(e);
|
|
@@ -3765,7 +3792,7 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3765
3792
|
children: [
|
|
3766
3793
|
e,
|
|
3767
3794
|
t && /* @__PURE__ */ E(Z, {}),
|
|
3768
|
-
i && /* @__PURE__ */ E(
|
|
3795
|
+
i && /* @__PURE__ */ E(He, {
|
|
3769
3796
|
label: a,
|
|
3770
3797
|
children: i
|
|
3771
3798
|
})
|
|
@@ -3783,7 +3810,7 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3783
3810
|
}) : null
|
|
3784
3811
|
]
|
|
3785
3812
|
});
|
|
3786
|
-
}),
|
|
3813
|
+
}), jn = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: p = "", fieldClassName: m = "", ...h }, g) {
|
|
3787
3814
|
U("AppOtpInput", h);
|
|
3788
3815
|
let _ = s(), v = f || _, y = l ? `${v}-error` : void 0, b = c ? `${v}-hint` : void 0, x = y || b, { setRef: S } = Q({
|
|
3789
3816
|
ref: g,
|
|
@@ -3828,7 +3855,7 @@ var Tn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3828
3855
|
});
|
|
3829
3856
|
//#endregion
|
|
3830
3857
|
//#region src/components/AppPageHeader.jsx
|
|
3831
|
-
function
|
|
3858
|
+
function Mn({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...p }) {
|
|
3832
3859
|
U("AppPageHeader", p);
|
|
3833
3860
|
let m = [
|
|
3834
3861
|
"page-header",
|
|
@@ -3887,9 +3914,9 @@ function On({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
|
|
|
3887
3914
|
}
|
|
3888
3915
|
//#endregion
|
|
3889
3916
|
//#region src/components/AppPagination.jsx
|
|
3890
|
-
function
|
|
3917
|
+
function Nn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
|
|
3891
3918
|
if (U("AppPagination", s), t <= 1) return null;
|
|
3892
|
-
let c =
|
|
3919
|
+
let c = Rt(e, t, { siblingCount: r });
|
|
3893
3920
|
return /* @__PURE__ */ E("nav", {
|
|
3894
3921
|
className: [
|
|
3895
3922
|
"pagination-nav",
|
|
@@ -3947,7 +3974,7 @@ function kn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
|
|
|
3947
3974
|
}
|
|
3948
3975
|
//#endregion
|
|
3949
3976
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
3950
|
-
var
|
|
3977
|
+
var Pn = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: c, required: l = !1, error: u, showFlag: d = !0, showDialCode: f = !0, size: p = "md", fieldClassName: m = "", ...h }, g) {
|
|
3951
3978
|
U("AppPhoneNumberInput", h);
|
|
3952
3979
|
let _ = s(), v = a || _, y = u && v ? `${v}-error` : void 0, { setRef: b } = Q({
|
|
3953
3980
|
ref: g,
|
|
@@ -3988,7 +4015,7 @@ var An = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
|
|
|
3988
4015
|
});
|
|
3989
4016
|
//#endregion
|
|
3990
4017
|
//#region src/components/AppPricingCard.jsx
|
|
3991
|
-
function
|
|
4018
|
+
function Fn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a, featured: o = !1, current: s = !1, badge: c = "Most popular", className: l = "", ...u }) {
|
|
3992
4019
|
return U("AppPricingCard", u), /* @__PURE__ */ D("div", {
|
|
3993
4020
|
className: [
|
|
3994
4021
|
"plan-card",
|
|
@@ -4042,21 +4069,21 @@ function jn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
|
|
|
4042
4069
|
}
|
|
4043
4070
|
//#endregion
|
|
4044
4071
|
//#region src/components/AppProgress.jsx
|
|
4045
|
-
var
|
|
4072
|
+
var In = [
|
|
4046
4073
|
"info",
|
|
4047
4074
|
"success",
|
|
4048
4075
|
"warning",
|
|
4049
4076
|
"danger",
|
|
4050
4077
|
"neutral"
|
|
4051
4078
|
];
|
|
4052
|
-
function
|
|
4079
|
+
function Ln(e, t) {
|
|
4053
4080
|
if (!(t > 0)) return 0;
|
|
4054
4081
|
let n = Math.min(100, Math.max(0, e / t * 100));
|
|
4055
4082
|
return Number(n.toFixed(2));
|
|
4056
4083
|
}
|
|
4057
|
-
function
|
|
4084
|
+
function Rn({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", label: i, showLabel: a = !1, striped: o = !1, animated: s = !1, indeterminate: c = !1, className: l = "", ...u }) {
|
|
4058
4085
|
U("AppProgress", u);
|
|
4059
|
-
let d =
|
|
4086
|
+
let d = In.includes(n) ? n : "info", f = Ln(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
|
|
4060
4087
|
"progress-bar",
|
|
4061
4088
|
`wui-progress-${d}`,
|
|
4062
4089
|
o || s ? "progress-bar-striped" : "",
|
|
@@ -4080,8 +4107,8 @@ function Pn({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
|
|
|
4080
4107
|
}
|
|
4081
4108
|
//#endregion
|
|
4082
4109
|
//#region src/components/AppRadio.jsx
|
|
4083
|
-
var
|
|
4084
|
-
return U("AppRadio", o), /* @__PURE__ */ E(
|
|
4110
|
+
var zn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
4111
|
+
return U("AppRadio", o), /* @__PURE__ */ E(ht, {
|
|
4085
4112
|
ref: s,
|
|
4086
4113
|
label: e,
|
|
4087
4114
|
id: t,
|
|
@@ -4096,7 +4123,7 @@ var Fn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
4096
4123
|
});
|
|
4097
4124
|
//#endregion
|
|
4098
4125
|
//#region src/components/AppRepeater.jsx
|
|
4099
|
-
function
|
|
4126
|
+
function Bn({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, addLabel: a = "Add another", removeLabel: o = "Remove row", emptyText: s, min: c = 0, max: l, numbered: u = !0, className: d = "", ...f }) {
|
|
4100
4127
|
U("AppRepeater", f);
|
|
4101
4128
|
let p = typeof l == "number" && e.length >= l, m = !!i && e.length > c;
|
|
4102
4129
|
return /* @__PURE__ */ D("div", {
|
|
@@ -4124,7 +4151,7 @@ function In({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
4124
4151
|
className: "repeater-body",
|
|
4125
4152
|
children: t(e, r)
|
|
4126
4153
|
}),
|
|
4127
|
-
m && /* @__PURE__ */ E(
|
|
4154
|
+
m && /* @__PURE__ */ E(ke, {
|
|
4128
4155
|
icon: "trash-2",
|
|
4129
4156
|
label: `${o} ${r + 1}`,
|
|
4130
4157
|
danger: !0,
|
|
@@ -4134,7 +4161,7 @@ function In({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
4134
4161
|
]
|
|
4135
4162
|
}, e.id ?? r);
|
|
4136
4163
|
}),
|
|
4137
|
-
/* @__PURE__ */ E(
|
|
4164
|
+
/* @__PURE__ */ E(Ie, {
|
|
4138
4165
|
variant: "secondary",
|
|
4139
4166
|
size: "sm",
|
|
4140
4167
|
leftIcon: "plus",
|
|
@@ -4148,7 +4175,7 @@ function In({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
4148
4175
|
}
|
|
4149
4176
|
//#endregion
|
|
4150
4177
|
//#region src/components/AppResourceCard.jsx
|
|
4151
|
-
function
|
|
4178
|
+
function Vn({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
|
|
4152
4179
|
U("AppResourceCard", s);
|
|
4153
4180
|
let c = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
4154
4181
|
className: "res-card-icon",
|
|
@@ -4182,7 +4209,7 @@ function Ln({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
|
|
|
4182
4209
|
}
|
|
4183
4210
|
//#endregion
|
|
4184
4211
|
//#region src/components/AppResult.jsx
|
|
4185
|
-
var
|
|
4212
|
+
var Hn = {
|
|
4186
4213
|
success: {
|
|
4187
4214
|
icon: "check-circle",
|
|
4188
4215
|
tone: "success"
|
|
@@ -4203,9 +4230,9 @@ var Rn = {
|
|
|
4203
4230
|
404: { tone: "muted" },
|
|
4204
4231
|
500: { tone: "muted" }
|
|
4205
4232
|
};
|
|
4206
|
-
function
|
|
4207
|
-
U("AppResult", s), W("AppResult", "status", e, Object.keys(
|
|
4208
|
-
let c =
|
|
4233
|
+
function Un({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
|
|
4234
|
+
U("AppResult", s), W("AppResult", "status", e, Object.keys(Hn));
|
|
4235
|
+
let c = Hn[e] || Hn.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
|
|
4209
4236
|
return /* @__PURE__ */ D("div", {
|
|
4210
4237
|
className: [
|
|
4211
4238
|
"result",
|
|
@@ -4243,7 +4270,7 @@ function zn({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
|
|
|
4243
4270
|
}
|
|
4244
4271
|
//#endregion
|
|
4245
4272
|
//#region src/components/AppScrollbar.jsx
|
|
4246
|
-
function
|
|
4273
|
+
function Wn({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
4247
4274
|
return U("AppScrollbar", i), /* @__PURE__ */ E("div", {
|
|
4248
4275
|
className: t ? `wui-scroll ${t}` : "wui-scroll",
|
|
4249
4276
|
style: n == null ? r : {
|
|
@@ -4256,7 +4283,7 @@ function Bn({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
|
4256
4283
|
}
|
|
4257
4284
|
//#endregion
|
|
4258
4285
|
//#region src/components/AppSearch.jsx
|
|
4259
|
-
function
|
|
4286
|
+
function Gn({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
|
|
4260
4287
|
U("AppSearch", u);
|
|
4261
4288
|
let d = t || n;
|
|
4262
4289
|
return /* @__PURE__ */ D("div", {
|
|
@@ -4303,7 +4330,7 @@ function Vn({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
|
|
|
4303
4330
|
}
|
|
4304
4331
|
//#endregion
|
|
4305
4332
|
//#region src/components/AppSegmented.jsx
|
|
4306
|
-
function
|
|
4333
|
+
function Kn({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: c = !1, disabled: u = !1, className: f = "", ...p }) {
|
|
4307
4334
|
U("AppSegmented", p);
|
|
4308
4335
|
let m = s(), h = i || m, g = d(null), _ = d(null), v = [
|
|
4309
4336
|
"segmented",
|
|
@@ -4377,7 +4404,7 @@ function Hn({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
|
|
|
4377
4404
|
}
|
|
4378
4405
|
//#endregion
|
|
4379
4406
|
//#region src/components/AppSelect.jsx
|
|
4380
|
-
var
|
|
4407
|
+
var qn = (e) => e == null ? "" : e.label ?? e.text ?? "", Jn = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, floatingLabel: d = !1, disabled: f, label: p, required: m = !1, error: h, hint: g, help: _, helpLabel: v = "More information", id: y, name: b, className: x = "", fieldClassName: S = "", "aria-label": C, "aria-labelledby": w, "aria-describedby": T, ...O }, k) {
|
|
4381
4408
|
U("AppSelect", O);
|
|
4382
4409
|
let A = s(), { setRef: j, innerRef: M } = Q({
|
|
4383
4410
|
ref: k,
|
|
@@ -4389,10 +4416,10 @@ var Un = (e) => e == null ? "" : e.label ?? e.text ?? "", Wn = i(function({ valu
|
|
|
4389
4416
|
if (!e) return;
|
|
4390
4417
|
let t = n.map((e) => ({
|
|
4391
4418
|
value: e.value,
|
|
4392
|
-
label:
|
|
4419
|
+
label: qn(e),
|
|
4393
4420
|
icon: e.icon
|
|
4394
4421
|
}));
|
|
4395
|
-
|
|
4422
|
+
Ke(t, e.options) || (e.options = t);
|
|
4396
4423
|
}, [n, M]);
|
|
4397
4424
|
let N = y || A, P = d && p, F = h && N ? `${N}-error` : void 0, I = g && N ? `${N}-hint` : void 0, L = /* @__PURE__ */ E("wui-select", {
|
|
4398
4425
|
"aria-label": C || (typeof p == "string" ? p : void 0),
|
|
@@ -4422,7 +4449,7 @@ var Un = (e) => e == null ? "" : e.label ?? e.text ?? "", Wn = i(function({ valu
|
|
|
4422
4449
|
children: [
|
|
4423
4450
|
p,
|
|
4424
4451
|
m && /* @__PURE__ */ E(Z, {}),
|
|
4425
|
-
_ && /* @__PURE__ */ E(
|
|
4452
|
+
_ && /* @__PURE__ */ E(He, {
|
|
4426
4453
|
label: v,
|
|
4427
4454
|
children: _
|
|
4428
4455
|
})
|
|
@@ -4450,7 +4477,7 @@ var Un = (e) => e == null ? "" : e.label ?? e.text ?? "", Wn = i(function({ valu
|
|
|
4450
4477
|
});
|
|
4451
4478
|
//#endregion
|
|
4452
4479
|
//#region src/components/AppShell.jsx
|
|
4453
|
-
function
|
|
4480
|
+
function Yn({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: d, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
|
|
4454
4481
|
U("AppShell", _);
|
|
4455
4482
|
let [v, y] = f(!1), [b, x] = f(!1), [S, C] = f(!1), w = u ?? v, T = () => {
|
|
4456
4483
|
let e = !w;
|
|
@@ -4498,7 +4525,7 @@ function Gn({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
4498
4525
|
children: [e.label && /* @__PURE__ */ E("div", {
|
|
4499
4526
|
className: "app-nav-group-label",
|
|
4500
4527
|
children: e.label
|
|
4501
|
-
}), e.items.map((e) => /* @__PURE__ */ E(
|
|
4528
|
+
}), e.items.map((e) => /* @__PURE__ */ E(Xn, {
|
|
4502
4529
|
item: e,
|
|
4503
4530
|
linkComponent: h,
|
|
4504
4531
|
onNavigate: () => x(!1)
|
|
@@ -4565,7 +4592,7 @@ function Gn({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
4565
4592
|
]
|
|
4566
4593
|
});
|
|
4567
4594
|
}
|
|
4568
|
-
function
|
|
4595
|
+
function Xn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
4569
4596
|
let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = f(a);
|
|
4570
4597
|
o(() => {
|
|
4571
4598
|
a && !s && c(!0);
|
|
@@ -4607,7 +4634,7 @@ function Kn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
4607
4634
|
"aria-hidden": !s || void 0,
|
|
4608
4635
|
children: /* @__PURE__ */ E("div", {
|
|
4609
4636
|
className: "app-nav-sub-inner",
|
|
4610
|
-
children: e.children.map((e) => /* @__PURE__ */ E(
|
|
4637
|
+
children: e.children.map((e) => /* @__PURE__ */ E(Xn, {
|
|
4611
4638
|
item: e,
|
|
4612
4639
|
linkComponent: t,
|
|
4613
4640
|
onNavigate: n,
|
|
@@ -4648,7 +4675,7 @@ function Kn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
4648
4675
|
}
|
|
4649
4676
|
//#endregion
|
|
4650
4677
|
//#region src/components/AppSidebarMenu.jsx
|
|
4651
|
-
var
|
|
4678
|
+
var Zn = {
|
|
4652
4679
|
left: "start",
|
|
4653
4680
|
right: "end",
|
|
4654
4681
|
start: "start",
|
|
@@ -4656,9 +4683,9 @@ var qn = {
|
|
|
4656
4683
|
top: "top",
|
|
4657
4684
|
bottom: "bottom"
|
|
4658
4685
|
};
|
|
4659
|
-
function
|
|
4660
|
-
U("AppSidebarMenu", v), W("AppSidebarMenu", "side", n, Object.keys(
|
|
4661
|
-
let { style: y, ...b } = v, S =
|
|
4686
|
+
function Qn({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, header: a, children: o, footer: s, width: c, maxWidth: l, backdrop: u = !0, scroll: d = !1, keyboard: f = !0, closeButton: p = !0, responsive: m, className: h = "", bodyClassName: g = "", ariaLabel: _, ...v }) {
|
|
4687
|
+
U("AppSidebarMenu", v), W("AppSidebarMenu", "side", n, Object.keys(Zn));
|
|
4688
|
+
let { style: y, ...b } = v, S = Zn[n] || "end", C = c || l || y ? {
|
|
4662
4689
|
...c && { "--asm-width": c },
|
|
4663
4690
|
...l && { "--asm-max-width": l },
|
|
4664
4691
|
...y
|
|
@@ -4687,7 +4714,7 @@ function Jn({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
4687
4714
|
size: 18
|
|
4688
4715
|
})
|
|
4689
4716
|
}), r]
|
|
4690
|
-
}), p && /* @__PURE__ */ E(
|
|
4717
|
+
}), p && /* @__PURE__ */ E(Ie, {
|
|
4691
4718
|
variant: "ghost",
|
|
4692
4719
|
className: "btn-icon",
|
|
4693
4720
|
onClick: t,
|
|
@@ -4711,14 +4738,14 @@ function Jn({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
4711
4738
|
}
|
|
4712
4739
|
//#endregion
|
|
4713
4740
|
//#region src/components/AppSlider.jsx
|
|
4714
|
-
var
|
|
4741
|
+
var $n = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: p, min: m = 0, max: h = 100, step: g = 1, disabled: _, size: v, showValue: y, unit: b, id: x, ariaLabel: S, className: C = "", fieldClassName: w = "", ...T }, O) {
|
|
4715
4742
|
U("AppSlider", T);
|
|
4716
4743
|
let k = s(), A = x || k, j = r, { setRef: M, innerRef: N } = Q({
|
|
4717
4744
|
ref: O,
|
|
4718
4745
|
value: j ? void 0 : e,
|
|
4719
4746
|
onChange: i,
|
|
4720
|
-
readValue: j ?
|
|
4721
|
-
writeValue: j ? void 0 :
|
|
4747
|
+
readValue: j ? Ye : void 0,
|
|
4748
|
+
writeValue: j ? void 0 : Xe
|
|
4722
4749
|
});
|
|
4723
4750
|
o(() => {
|
|
4724
4751
|
if (!j) return;
|
|
@@ -4772,14 +4799,14 @@ var Yn = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
|
|
|
4772
4799
|
})
|
|
4773
4800
|
]
|
|
4774
4801
|
});
|
|
4775
|
-
}),
|
|
4802
|
+
}), er = {
|
|
4776
4803
|
sm: 44,
|
|
4777
4804
|
md: 56,
|
|
4778
4805
|
lg: 72
|
|
4779
4806
|
};
|
|
4780
|
-
function
|
|
4781
|
-
U("AppSplash", c), W("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(
|
|
4782
|
-
let { style: l, ...u } = c, d = typeof a == "number" ? a :
|
|
4807
|
+
function tr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
|
|
4808
|
+
U("AppSplash", c), W("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(er));
|
|
4809
|
+
let { style: l, ...u } = c, d = typeof a == "number" ? a : er[a] ?? er.md, f = i === "ring" ? /* @__PURE__ */ E("span", {
|
|
4783
4810
|
className: "splash-ring",
|
|
4784
4811
|
"aria-hidden": "true"
|
|
4785
4812
|
}) : i === "dots" ? /* @__PURE__ */ D("span", {
|
|
@@ -4826,8 +4853,8 @@ function Zn({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
|
|
|
4826
4853
|
}
|
|
4827
4854
|
//#endregion
|
|
4828
4855
|
//#region src/components/AppStatusBadge.jsx
|
|
4829
|
-
function
|
|
4830
|
-
return U("AppStatusBadge", a), e == null || e === "" ? "—" :
|
|
4856
|
+
function nr({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
|
|
4857
|
+
return U("AppStatusBadge", a), e == null || e === "" ? "—" : K(/* @__PURE__ */ E("span", {
|
|
4831
4858
|
className: `status-label ${t}${n ? ` ${n}` : ""}`,
|
|
4832
4859
|
...a,
|
|
4833
4860
|
children: e
|
|
@@ -4835,7 +4862,7 @@ function Qn({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
|
|
|
4835
4862
|
}
|
|
4836
4863
|
//#endregion
|
|
4837
4864
|
//#region src/components/AppStepper.jsx
|
|
4838
|
-
function
|
|
4865
|
+
function rr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
4839
4866
|
U("AppStepper", c);
|
|
4840
4867
|
let l = t === "journey";
|
|
4841
4868
|
return /* @__PURE__ */ E("nav", {
|
|
@@ -4848,7 +4875,7 @@ function $n({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
4848
4875
|
"aria-label": a,
|
|
4849
4876
|
...c,
|
|
4850
4877
|
children: e.map((t, n) => {
|
|
4851
|
-
let a = t.status ||
|
|
4878
|
+
let a = t.status || ir(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
|
|
4852
4879
|
c = a === "done" ? /* @__PURE__ */ E(Y, {
|
|
4853
4880
|
name: "check",
|
|
4854
4881
|
size: 14
|
|
@@ -4912,13 +4939,13 @@ function $n({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
4912
4939
|
})
|
|
4913
4940
|
});
|
|
4914
4941
|
}
|
|
4915
|
-
function
|
|
4942
|
+
function ir(e, t) {
|
|
4916
4943
|
return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
|
|
4917
4944
|
}
|
|
4918
4945
|
//#endregion
|
|
4919
4946
|
//#region src/components/AppSwitch.jsx
|
|
4920
|
-
var
|
|
4921
|
-
return U("AppSwitch", s), /* @__PURE__ */ E(
|
|
4947
|
+
var ar = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
|
|
4948
|
+
return U("AppSwitch", s), /* @__PURE__ */ E(ht, {
|
|
4922
4949
|
ref: c,
|
|
4923
4950
|
label: e,
|
|
4924
4951
|
id: t,
|
|
@@ -4933,7 +4960,7 @@ var tr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
|
|
|
4933
4960
|
});
|
|
4934
4961
|
//#endregion
|
|
4935
4962
|
//#region src/components/AppTableEmptyState.jsx
|
|
4936
|
-
function
|
|
4963
|
+
function or({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
4937
4964
|
return U("AppTableEmptyState", i), /* @__PURE__ */ D("div", {
|
|
4938
4965
|
className: "tbl-empty",
|
|
4939
4966
|
...i,
|
|
@@ -4959,8 +4986,8 @@ function nr({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
|
4959
4986
|
}
|
|
4960
4987
|
//#endregion
|
|
4961
4988
|
//#region src/components/AppTabs.jsx
|
|
4962
|
-
var
|
|
4963
|
-
function
|
|
4989
|
+
var sr = 1, cr = 28, lr = .7;
|
|
4990
|
+
function ur({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: s = "horizontal", size: c = "md", fitted: u = !1, activation: p = "automatic", ariaLabel: m, className: h = "", style: g, ..._ }) {
|
|
4964
4991
|
U("AppTabs", _);
|
|
4965
4992
|
let v = d(null), y = d(null), b = s === "vertical", [x, S] = f(t);
|
|
4966
4993
|
o(() => {
|
|
@@ -4972,7 +4999,7 @@ function or({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
4972
4999
|
let e = v.current, t = y.current;
|
|
4973
5000
|
if (!e || !t || b) return;
|
|
4974
5001
|
let n = e.scrollWidth - e.clientWidth;
|
|
4975
|
-
t.classList.toggle("is-overflow-start", e.scrollLeft >
|
|
5002
|
+
t.classList.toggle("is-overflow-start", e.scrollLeft > sr), t.classList.toggle("is-overflow-end", n > sr && e.scrollLeft < n - sr);
|
|
4976
5003
|
}, [b]), M = a(() => {
|
|
4977
5004
|
let n = v.current;
|
|
4978
5005
|
if (!n) return;
|
|
@@ -4988,7 +5015,7 @@ function or({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
4988
5015
|
if (!e || b) return;
|
|
4989
5016
|
let t = e.querySelector(".app-tab.active");
|
|
4990
5017
|
if (!t) return;
|
|
4991
|
-
let n =
|
|
5018
|
+
let n = cr, r = t.offsetLeft, i = r + t.offsetWidth;
|
|
4992
5019
|
r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
|
|
4993
5020
|
}, [b]);
|
|
4994
5021
|
l(() => {
|
|
@@ -5023,7 +5050,7 @@ function or({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5023
5050
|
}
|
|
5024
5051
|
let I = (e) => {
|
|
5025
5052
|
let t = v.current;
|
|
5026
|
-
t && t.scrollBy({ left: e * t.clientWidth *
|
|
5053
|
+
t && t.scrollBy({ left: e * t.clientWidth * lr });
|
|
5027
5054
|
}, L = [
|
|
5028
5055
|
"app-tabs",
|
|
5029
5056
|
i === "pills" ? "app-tabs-pills" : "",
|
|
@@ -5095,7 +5122,7 @@ function or({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5095
5122
|
},
|
|
5096
5123
|
children: s
|
|
5097
5124
|
}, e.key);
|
|
5098
|
-
return e.tooltip ? /* @__PURE__ */ E(
|
|
5125
|
+
return e.tooltip ? /* @__PURE__ */ E(G, {
|
|
5099
5126
|
content: e.tooltip,
|
|
5100
5127
|
children: c
|
|
5101
5128
|
}, e.key) : c;
|
|
@@ -5136,14 +5163,14 @@ function or({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5136
5163
|
}
|
|
5137
5164
|
//#endregion
|
|
5138
5165
|
//#region src/components/AppTagInput.jsx
|
|
5139
|
-
var
|
|
5166
|
+
var dr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: p, ariaLabel: m, className: h = "", fieldClassName: g = "", help: _, helpLabel: v = "More information", ...y }, b) {
|
|
5140
5167
|
U("AppTagInput", y);
|
|
5141
5168
|
let x = s(), S = p || x, { setRef: C } = Q({
|
|
5142
5169
|
ref: b,
|
|
5143
5170
|
value: e,
|
|
5144
5171
|
onChange: t,
|
|
5145
|
-
readValue:
|
|
5146
|
-
writeValue:
|
|
5172
|
+
readValue: qe,
|
|
5173
|
+
writeValue: Je
|
|
5147
5174
|
});
|
|
5148
5175
|
return /* @__PURE__ */ D("div", {
|
|
5149
5176
|
className: `field${g ? ` ${g}` : ""}`,
|
|
@@ -5154,7 +5181,7 @@ var sr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5154
5181
|
children: [
|
|
5155
5182
|
i,
|
|
5156
5183
|
c && /* @__PURE__ */ E(Z, {}),
|
|
5157
|
-
_ && /* @__PURE__ */ E(
|
|
5184
|
+
_ && /* @__PURE__ */ E(He, {
|
|
5158
5185
|
label: v,
|
|
5159
5186
|
children: _
|
|
5160
5187
|
})
|
|
@@ -5187,7 +5214,7 @@ var sr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5187
5214
|
}) : null
|
|
5188
5215
|
]
|
|
5189
5216
|
});
|
|
5190
|
-
}),
|
|
5217
|
+
}), fr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: c = "More information", id: u, name: p, rows: m = 4, autoGrow: h = !1, showCount: g = !1, maxLength: _, className: v = "", fieldClassName: b = "", ...x }, S) {
|
|
5191
5218
|
U("AppTextarea", x);
|
|
5192
5219
|
let C = s(), w = u || C, T = [
|
|
5193
5220
|
"textarea",
|
|
@@ -5223,7 +5250,7 @@ var sr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5223
5250
|
children: [
|
|
5224
5251
|
e,
|
|
5225
5252
|
t && /* @__PURE__ */ E(Z, {}),
|
|
5226
|
-
i && /* @__PURE__ */ E(
|
|
5253
|
+
i && /* @__PURE__ */ E(He, {
|
|
5227
5254
|
label: c,
|
|
5228
5255
|
children: i
|
|
5229
5256
|
})
|
|
@@ -5258,7 +5285,7 @@ var sr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5258
5285
|
})
|
|
5259
5286
|
]
|
|
5260
5287
|
});
|
|
5261
|
-
}),
|
|
5288
|
+
}), pr = {
|
|
5262
5289
|
done: "check",
|
|
5263
5290
|
current: "clock",
|
|
5264
5291
|
"on-hold": "lock",
|
|
@@ -5267,7 +5294,7 @@ var sr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5267
5294
|
skipped: "arrow-right",
|
|
5268
5295
|
upcoming: null
|
|
5269
5296
|
};
|
|
5270
|
-
function
|
|
5297
|
+
function mr({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
|
|
5271
5298
|
U("AppTimeline", o);
|
|
5272
5299
|
let s = t === "progress", c = `timeline${s ? " timeline--progress" : ""}${n === "horizontal" ? " timeline--horizontal" : ""}${i ? ` ${i}` : ""}`, l = typeof r == "number" && r > 0 ? r : void 0, u = l ? Math.round(l * .54) : s ? 13 : 12;
|
|
5273
5300
|
return /* @__PURE__ */ E("ol", {
|
|
@@ -5278,7 +5305,7 @@ function ur({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
5278
5305
|
} : a,
|
|
5279
5306
|
...o,
|
|
5280
5307
|
children: e.map((e, t) => {
|
|
5281
|
-
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ?
|
|
5308
|
+
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? pr[n] : void 0) : e.icon || "circle";
|
|
5282
5309
|
return /* @__PURE__ */ D("li", {
|
|
5283
5310
|
className: `timeline-item${r}${i}`,
|
|
5284
5311
|
children: [/* @__PURE__ */ E("span", {
|
|
@@ -5348,7 +5375,7 @@ function ur({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
5348
5375
|
}
|
|
5349
5376
|
//#endregion
|
|
5350
5377
|
//#region src/components/AppTimePicker.jsx
|
|
5351
|
-
var
|
|
5378
|
+
var hr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: p, size: m, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", ...y }, b) {
|
|
5352
5379
|
U("AppTimePicker", y);
|
|
5353
5380
|
let x = s(), S = h || o || x, { setRef: C } = Q({
|
|
5354
5381
|
ref: b,
|
|
@@ -5393,35 +5420,35 @@ var dr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
5393
5420
|
})
|
|
5394
5421
|
]
|
|
5395
5422
|
});
|
|
5396
|
-
}),
|
|
5397
|
-
function
|
|
5398
|
-
for (let e of
|
|
5423
|
+
}), gr = 6, $ = [], _r = /* @__PURE__ */ new Set(), vr = /* @__PURE__ */ new Map(), yr = /* @__PURE__ */ new Set(), br = 0;
|
|
5424
|
+
function xr() {
|
|
5425
|
+
for (let e of _r) e($);
|
|
5399
5426
|
}
|
|
5400
|
-
function
|
|
5401
|
-
let t =
|
|
5402
|
-
t !== void 0 && (clearTimeout(t),
|
|
5427
|
+
function Sr(e) {
|
|
5428
|
+
let t = vr.get(e);
|
|
5429
|
+
t !== void 0 && (clearTimeout(t), vr.delete(e));
|
|
5403
5430
|
}
|
|
5404
|
-
function
|
|
5405
|
-
if (e.length <=
|
|
5431
|
+
function Cr(e, t) {
|
|
5432
|
+
if (e.length <= gr) return e;
|
|
5406
5433
|
let n = [...e], r = [];
|
|
5407
|
-
for (; n.length >
|
|
5434
|
+
for (; n.length > gr;) {
|
|
5408
5435
|
let e = n.findIndex((e) => e.id !== t && e.duration !== 0);
|
|
5409
5436
|
r.push(n.splice(e === -1 ? n.findIndex((e) => e.id !== t) : e, 1)[0]);
|
|
5410
5437
|
}
|
|
5411
|
-
for (let e of r)
|
|
5438
|
+
for (let e of r) Sr(e.id), yr.delete(e.id);
|
|
5412
5439
|
return n;
|
|
5413
5440
|
}
|
|
5414
|
-
function
|
|
5415
|
-
return
|
|
5416
|
-
if (
|
|
5441
|
+
function wr(e) {
|
|
5442
|
+
return _r.add(e), e($), () => {
|
|
5443
|
+
if (_r.delete(e), _r.size === 0) for (let e of $) e.duration > 0 && !vr.has(e.id) && (yr.delete(e.id), vr.set(e.id, setTimeout(() => Dr(e.id), e.duration)));
|
|
5417
5444
|
};
|
|
5418
5445
|
}
|
|
5419
|
-
function
|
|
5446
|
+
function Tr(e, t, n = {}) {
|
|
5420
5447
|
let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
|
|
5421
5448
|
if (r) {
|
|
5422
5449
|
let i = $.find((e) => e.externalId === r);
|
|
5423
5450
|
if (i) {
|
|
5424
|
-
|
|
5451
|
+
Sr(i.id);
|
|
5425
5452
|
let r = n.duration === void 0 ? 5e3 : n.duration;
|
|
5426
5453
|
$ = $.map((a) => a.id === i.id ? {
|
|
5427
5454
|
...a,
|
|
@@ -5434,12 +5461,12 @@ function xr(e, t, n = {}) {
|
|
|
5434
5461
|
shape: n.shape,
|
|
5435
5462
|
surface: n.surface,
|
|
5436
5463
|
progress: n.progress
|
|
5437
|
-
} : a),
|
|
5464
|
+
} : a), xr(), r > 0 && !yr.has(i.id) && vr.set(i.id, setTimeout(() => Dr(i.id), r));
|
|
5438
5465
|
return;
|
|
5439
5466
|
}
|
|
5440
5467
|
} else if (i && $.some((e) => e.key === i)) return;
|
|
5441
|
-
let a = ++
|
|
5442
|
-
$ =
|
|
5468
|
+
let a = ++br, o = n.duration === void 0 ? 5e3 : n.duration;
|
|
5469
|
+
$ = Cr([...$, {
|
|
5443
5470
|
id: a,
|
|
5444
5471
|
externalId: r,
|
|
5445
5472
|
message: e,
|
|
@@ -5452,25 +5479,25 @@ function xr(e, t, n = {}) {
|
|
|
5452
5479
|
surface: n.surface,
|
|
5453
5480
|
progress: n.progress,
|
|
5454
5481
|
key: i
|
|
5455
|
-
}], a),
|
|
5482
|
+
}], a), xr(), o > 0 && vr.set(a, setTimeout(() => Dr(a), o));
|
|
5456
5483
|
}
|
|
5457
|
-
function
|
|
5458
|
-
|
|
5484
|
+
function Er(e) {
|
|
5485
|
+
Sr(e), yr.add(e);
|
|
5459
5486
|
}
|
|
5460
|
-
function
|
|
5461
|
-
|
|
5487
|
+
function Dr(e) {
|
|
5488
|
+
Sr(e), yr.delete(e);
|
|
5462
5489
|
let t = $.filter((t) => t.id !== e);
|
|
5463
|
-
t.length !== $.length && ($ = t,
|
|
5490
|
+
t.length !== $.length && ($ = t, xr());
|
|
5464
5491
|
}
|
|
5465
|
-
function
|
|
5466
|
-
if (!($.length === 0 &&
|
|
5467
|
-
for (let e of
|
|
5468
|
-
|
|
5492
|
+
function Or() {
|
|
5493
|
+
if (!($.length === 0 && vr.size === 0 && yr.size === 0)) {
|
|
5494
|
+
for (let e of vr.values()) clearTimeout(e);
|
|
5495
|
+
vr.clear(), yr.clear(), $.length !== 0 && ($ = [], xr());
|
|
5469
5496
|
}
|
|
5470
5497
|
}
|
|
5471
5498
|
//#endregion
|
|
5472
5499
|
//#region src/components/AppToast.jsx
|
|
5473
|
-
var
|
|
5500
|
+
var kr = {
|
|
5474
5501
|
success: {
|
|
5475
5502
|
icon: "check-circle",
|
|
5476
5503
|
assertive: !1
|
|
@@ -5487,7 +5514,7 @@ var Tr = {
|
|
|
5487
5514
|
icon: "alert-circle",
|
|
5488
5515
|
assertive: !0
|
|
5489
5516
|
}
|
|
5490
|
-
},
|
|
5517
|
+
}, Ar = {
|
|
5491
5518
|
"top-start": "top-0 start-0",
|
|
5492
5519
|
"top-center": "top-0 start-50 translate-middle-x",
|
|
5493
5520
|
"top-end": "top-0 end-0",
|
|
@@ -5495,21 +5522,21 @@ var Tr = {
|
|
|
5495
5522
|
"bottom-start": "bottom-0 start-0",
|
|
5496
5523
|
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
5497
5524
|
"bottom-end": "bottom-0 end-0"
|
|
5498
|
-
},
|
|
5525
|
+
}, jr = 64, Mr = /* @__PURE__ */ new Set([
|
|
5499
5526
|
"rise",
|
|
5500
5527
|
"organic",
|
|
5501
5528
|
"jelly",
|
|
5502
5529
|
"spring"
|
|
5503
|
-
]),
|
|
5530
|
+
]), Nr = /* @__PURE__ */ new Set([
|
|
5504
5531
|
"rounded",
|
|
5505
5532
|
"pill",
|
|
5506
5533
|
"sharp"
|
|
5507
|
-
]),
|
|
5508
|
-
function
|
|
5509
|
-
U("AppToast", s), W("AppToast", "position", e, Object.keys(
|
|
5534
|
+
]), Pr = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
5535
|
+
function Fr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
|
|
5536
|
+
U("AppToast", s), W("AppToast", "position", e, Object.keys(Ar)), W("AppToast", "animation", n, Mr), W("AppToast", "shape", r, Nr), W("AppToast", "surface", i, Pr);
|
|
5510
5537
|
let [c, l] = f([]);
|
|
5511
|
-
o(() =>
|
|
5512
|
-
let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p =
|
|
5538
|
+
o(() => wr(l), []);
|
|
5539
|
+
let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p = Ar[e] ?? Ar["bottom-end"];
|
|
5513
5540
|
return /* @__PURE__ */ D("div", {
|
|
5514
5541
|
...s,
|
|
5515
5542
|
className: `wui-toast-container toast-container position-fixed ${p} p-3 ${a}`.trim(),
|
|
@@ -5521,7 +5548,7 @@ function jr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
5521
5548
|
u,
|
|
5522
5549
|
" more"
|
|
5523
5550
|
]
|
|
5524
|
-
}), d.map((e) => /* @__PURE__ */ E(
|
|
5551
|
+
}), d.map((e) => /* @__PURE__ */ E(Ir, {
|
|
5525
5552
|
toast: e,
|
|
5526
5553
|
defaultAnimation: n,
|
|
5527
5554
|
defaultShape: r,
|
|
@@ -5529,14 +5556,14 @@ function jr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
5529
5556
|
}, e.id))]
|
|
5530
5557
|
});
|
|
5531
5558
|
}
|
|
5532
|
-
function
|
|
5533
|
-
let i =
|
|
5559
|
+
function Ir({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
|
|
5560
|
+
let i = kr[e.variant] ?? kr.success, a = Mr.has(e.animation) ? e.animation : t, s = Nr.has(e.shape) ? e.shape : n, c = Pr.has(e.surface) ? e.surface : r, l = (a !== "rise" && Mr.has(a) ? ` wui-toast--anim-${a}` : "") + (s !== "rounded" && Nr.has(s) ? ` wui-toast--shape-${s}` : "") + (c === "inverse" ? " wui-toast--surface-inverse" : ""), u = e.duration === 0, [p, m] = f(0), [h, g] = f(!1), _ = d(null), v = () => Dr(e.id), y = d(null);
|
|
5534
5561
|
o(() => {
|
|
5535
5562
|
if (e.duration === 0) return;
|
|
5536
|
-
|
|
5563
|
+
Er(e.id);
|
|
5537
5564
|
let t = y.current, n = t == null ? "" : getComputedStyle(t).animationName;
|
|
5538
5565
|
if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
|
|
5539
|
-
let r = setTimeout(() =>
|
|
5566
|
+
let r = setTimeout(() => Dr(e.id), e.duration);
|
|
5540
5567
|
return () => clearTimeout(r);
|
|
5541
5568
|
}, [e.id, e.duration]);
|
|
5542
5569
|
let b = (e) => {
|
|
@@ -5548,7 +5575,7 @@ function Mr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
5548
5575
|
}, C = (e) => {
|
|
5549
5576
|
if (_.current === null) return;
|
|
5550
5577
|
let t = e.clientX - _.current;
|
|
5551
|
-
if (Math.abs(t) >
|
|
5578
|
+
if (Math.abs(t) > jr) {
|
|
5552
5579
|
v();
|
|
5553
5580
|
return;
|
|
5554
5581
|
}
|
|
@@ -5632,7 +5659,7 @@ function Mr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
5632
5659
|
}
|
|
5633
5660
|
//#endregion
|
|
5634
5661
|
//#region src/components/AppToolbar.jsx
|
|
5635
|
-
function
|
|
5662
|
+
function Lr({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
|
|
5636
5663
|
U("AppToolbar", u);
|
|
5637
5664
|
let d = s(), p = o || d, [m, h] = f(r), g = n === void 0 ? m : n;
|
|
5638
5665
|
return /* @__PURE__ */ D("div", {
|
|
@@ -5690,7 +5717,7 @@ function Nr({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
|
|
|
5690
5717
|
}
|
|
5691
5718
|
//#endregion
|
|
5692
5719
|
//#region src/components/AppWizard.jsx
|
|
5693
|
-
var
|
|
5720
|
+
var Rr = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: u, variant: f = "steps", tone: p, orientation: m = "horizontal", skippable: h = !1, nonLinear: g = !1, hideStepper: _ = !1, disabled: v = !1, label: y = "Progress", backLabel: b = "Back", nextLabel: x = "Next", skipLabel: S = "Skip", finishLabel: C = "Finish", className: w = "", ...T }, D) {
|
|
5694
5721
|
U("AppWizard", T);
|
|
5695
5722
|
let O = d(null), k = (e) => {
|
|
5696
5723
|
O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
|
|
@@ -5742,13 +5769,13 @@ var Pr = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
|
|
|
5742
5769
|
children: A[t]
|
|
5743
5770
|
}, e.key ?? `${e.label}-${t}`))
|
|
5744
5771
|
});
|
|
5745
|
-
}),
|
|
5772
|
+
}), zr = /* @__PURE__ */ new Set([
|
|
5746
5773
|
"ArrowUp",
|
|
5747
5774
|
"ArrowDown",
|
|
5748
5775
|
"ArrowLeft",
|
|
5749
5776
|
"ArrowRight"
|
|
5750
5777
|
]);
|
|
5751
|
-
function
|
|
5778
|
+
function Br({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: l = !1, createLabel: p = "Create workspace", compact: m = !1, size: h = "md", ariaLabel: g, ..._ }) {
|
|
5752
5779
|
let { onToggle: y, ...b } = _;
|
|
5753
5780
|
U("AppWorkspaceSwitcher", b);
|
|
5754
5781
|
let [x, S] = f(""), [C, w] = f(!1), T = d(null), O = (e, t) => {
|
|
@@ -5768,7 +5795,7 @@ function Ir({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
5768
5795
|
let e = T.current;
|
|
5769
5796
|
if (!e) return;
|
|
5770
5797
|
let t = (e) => {
|
|
5771
|
-
if (
|
|
5798
|
+
if (zr.has(e.key)) {
|
|
5772
5799
|
e.stopPropagation();
|
|
5773
5800
|
return;
|
|
5774
5801
|
}
|
|
@@ -5786,7 +5813,7 @@ function Ir({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
5786
5813
|
onToggle: O,
|
|
5787
5814
|
...b,
|
|
5788
5815
|
children: [/* @__PURE__ */ E(v.Toggle, {
|
|
5789
|
-
as:
|
|
5816
|
+
as: Wr,
|
|
5790
5817
|
compact: m,
|
|
5791
5818
|
tenant: k,
|
|
5792
5819
|
"aria-label": M
|
|
@@ -5821,7 +5848,7 @@ function Ir({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
5821
5848
|
className: `workspace-switcher-option${e.id === k?.id ? " is-active" : ""}`,
|
|
5822
5849
|
onClick: () => n?.(e),
|
|
5823
5850
|
children: [
|
|
5824
|
-
/* @__PURE__ */ E(
|
|
5851
|
+
/* @__PURE__ */ E(Hr, { tenant: e }),
|
|
5825
5852
|
/* @__PURE__ */ E("span", {
|
|
5826
5853
|
className: "workspace-switcher-option-name",
|
|
5827
5854
|
children: e.name
|
|
@@ -5853,17 +5880,17 @@ function Ir({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
5853
5880
|
}) : null,
|
|
5854
5881
|
i ? /* @__PURE__ */ E("div", {
|
|
5855
5882
|
className: "workspace-switcher-footer",
|
|
5856
|
-
children:
|
|
5883
|
+
children: Ur(i, a)
|
|
5857
5884
|
}) : null
|
|
5858
5885
|
]
|
|
5859
5886
|
})]
|
|
5860
5887
|
});
|
|
5861
5888
|
}
|
|
5862
|
-
function
|
|
5889
|
+
function Vr(e) {
|
|
5863
5890
|
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
5864
5891
|
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
5865
5892
|
}
|
|
5866
|
-
function
|
|
5893
|
+
function Hr({ tenant: e }) {
|
|
5867
5894
|
return e?.logoUrl ? /* @__PURE__ */ E("img", {
|
|
5868
5895
|
className: "workspace-switcher-mark",
|
|
5869
5896
|
src: e.logoUrl,
|
|
@@ -5871,10 +5898,10 @@ function Rr({ tenant: e }) {
|
|
|
5871
5898
|
loading: "lazy"
|
|
5872
5899
|
}) : /* @__PURE__ */ E("span", {
|
|
5873
5900
|
className: "workspace-switcher-mark",
|
|
5874
|
-
children:
|
|
5901
|
+
children: Vr(e?.name)
|
|
5875
5902
|
});
|
|
5876
5903
|
}
|
|
5877
|
-
function
|
|
5904
|
+
function Ur(e, t) {
|
|
5878
5905
|
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
5879
5906
|
let { label: n, icon: r, href: i } = e;
|
|
5880
5907
|
return /* @__PURE__ */ D(i ? t ?? "a" : "button", {
|
|
@@ -5886,7 +5913,7 @@ function zr(e, t) {
|
|
|
5886
5913
|
}) : null, n]
|
|
5887
5914
|
});
|
|
5888
5915
|
}
|
|
5889
|
-
var
|
|
5916
|
+
var Wr = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
|
|
5890
5917
|
return /* @__PURE__ */ D("button", {
|
|
5891
5918
|
ref: a,
|
|
5892
5919
|
type: "button",
|
|
@@ -5894,7 +5921,7 @@ var Br = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
5894
5921
|
"aria-haspopup": "true",
|
|
5895
5922
|
"aria-label": n,
|
|
5896
5923
|
...i,
|
|
5897
|
-
children: [/* @__PURE__ */ E(
|
|
5924
|
+
children: [/* @__PURE__ */ E(Hr, { tenant: t }), e ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
5898
5925
|
className: "workspace-switcher-trigger-name",
|
|
5899
5926
|
children: t?.name
|
|
5900
5927
|
}), /* @__PURE__ */ E(Y, {
|
|
@@ -5906,36 +5933,36 @@ var Br = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
5906
5933
|
});
|
|
5907
5934
|
//#endregion
|
|
5908
5935
|
//#region src/components/toast.js
|
|
5909
|
-
function
|
|
5910
|
-
|
|
5936
|
+
function Gr() {
|
|
5937
|
+
Or();
|
|
5911
5938
|
}
|
|
5912
|
-
var
|
|
5939
|
+
var Kr = /* @__PURE__ */ new Set([
|
|
5913
5940
|
"success",
|
|
5914
5941
|
"info",
|
|
5915
5942
|
"warning",
|
|
5916
5943
|
"danger"
|
|
5917
5944
|
]);
|
|
5918
|
-
function
|
|
5945
|
+
function qr(e, t = "info") {
|
|
5919
5946
|
let n = "info", r = {};
|
|
5920
|
-
typeof t == "string" ? n =
|
|
5947
|
+
typeof t == "string" ? n = Kr.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = Kr.has(r.variant) ? r.variant : "info"), Tr(e, n, r);
|
|
5921
5948
|
}
|
|
5922
|
-
function
|
|
5923
|
-
|
|
5949
|
+
function Jr(e, t = {}) {
|
|
5950
|
+
Tr(e, "danger", t);
|
|
5924
5951
|
}
|
|
5925
|
-
|
|
5952
|
+
qr.promise = (e, t, n = {}) => {
|
|
5926
5953
|
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
5927
|
-
return
|
|
5954
|
+
return qr(t.loading || "Loading...", {
|
|
5928
5955
|
...n,
|
|
5929
5956
|
variant: "info",
|
|
5930
5957
|
id: r,
|
|
5931
5958
|
duration: 0
|
|
5932
|
-
}), e.then((e) => (
|
|
5959
|
+
}), e.then((e) => (qr((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
5933
5960
|
...n,
|
|
5934
5961
|
variant: "success",
|
|
5935
5962
|
id: r,
|
|
5936
5963
|
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
5937
5964
|
}), e)).catch((e) => {
|
|
5938
|
-
throw
|
|
5965
|
+
throw qr((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
5939
5966
|
...n,
|
|
5940
5967
|
variant: "danger",
|
|
5941
5968
|
id: r,
|
|
@@ -5945,7 +5972,7 @@ Ur.promise = (e, t, n = {}) => {
|
|
|
5945
5972
|
};
|
|
5946
5973
|
//#endregion
|
|
5947
5974
|
//#region src/lib/usePagination.js
|
|
5948
|
-
function
|
|
5975
|
+
function Yr(e, t = 10) {
|
|
5949
5976
|
let [n, r] = f(1), [i, a] = f(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
|
|
5950
5977
|
o(() => {
|
|
5951
5978
|
n > c && r(c);
|
|
@@ -5971,4 +5998,4 @@ function Gr(e, t = 10) {
|
|
|
5971
5998
|
};
|
|
5972
5999
|
}
|
|
5973
6000
|
//#endregion
|
|
5974
|
-
export {
|
|
6001
|
+
export { Oe as AppAccordion, ke as AppActionIcon, Me as AppAlert, ze as AppAsyncBlock, Ze as AppAutocomplete, rt as AppAvatar, ot as AppAvatarGroup, st as AppBadge, lt as AppBanner, ut as AppBreadcrumbs, Ie as AppButton, ft as AppCallout, mt as AppCard, gt as AppCheckbox, _t as AppChip, vt as AppChoiceCard, yt as AppChoiceChip, bt as AppColorField, xt as AppCompareTable, At as AppConfirmDialog, Mt as AppConsentBanner, Pt as AppCopyButton, Wt as AppDataTable, Gt as AppDatePicker, Kt as AppDateRangePicker, Jt as AppDescriptions, Zt as AppDropdown, Le as AppEmptyState, $t as AppFeedback, on as AppFileAttachment, cn as AppFilePicker, ln as AppFloatingDock, un as AppFormActions, dn as AppFormRow, fn as AppFormSection, Y as AppIcon, pn as AppInfoList, He as AppInfoTip, St as AppInput, vn as AppKpiTile, Sn as AppLink, wn as AppLogoPicker, On as AppMeter, Dt as AppModal, kn as AppMultiSelect, An as AppNumberInput, jn as AppOtpInput, Mn as AppPageHeader, Nn as AppPagination, Pn as AppPhoneNumberInput, Ve as AppPopover, Fn as AppPricingCard, Rn as AppProgress, zn as AppRadio, Bn as AppRepeater, Z as AppRequiredMark, Vn as AppResourceCard, Un as AppResult, Wn as AppScrollbar, Gn as AppSearch, Kn as AppSegmented, Jn as AppSelect, zt as AppSelectMini, Yn as AppShell, Qn as AppSidebarMenu, Ft as AppSkeleton, It as AppSkeletonRows, $n as AppSlider, Re as AppSpinner, tr as AppSplash, nr as AppStatusBadge, rr as AppStepper, ar as AppSwitch, or as AppTableEmptyState, Vt as AppTablePagination, ur as AppTabs, dr as AppTagInput, fr as AppTextarea, hr as AppTimePicker, mr as AppTimeline, Fr as AppToast, Lr as AppToolbar, G as AppTooltip, Rr as AppWizard, Br as AppWorkspaceSwitcher, kt as MODAL_ICONS, Gr as dismissAll, Jr as errorToast, Te as iconNames, De as registerIcons, qr as toast, Yr as usePagination };
|