@webority/ui-react 0.17.2 → 0.17.3
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
|
@@ -170,7 +170,7 @@ var V = {
|
|
|
170
170
|
x: () => import("./x.g-Cc7upOBC.js"),
|
|
171
171
|
z: () => import("./z.g-COIy6PjH.js")
|
|
172
172
|
}
|
|
173
|
-
}, 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("."), U = {
|
|
173
|
+
}, U = /* @__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("."), W = {
|
|
174
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>",
|
|
175
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>",
|
|
176
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>",
|
|
@@ -319,47 +319,47 @@ var V = {
|
|
|
319
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>",
|
|
320
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>"
|
|
321
321
|
};
|
|
322
|
-
Object.keys(
|
|
322
|
+
Object.keys(W);
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region src/components/warnUnknownProps.js
|
|
325
|
-
var
|
|
325
|
+
var ee = /* @__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(".")), te = () => {
|
|
326
326
|
try {
|
|
327
327
|
return process.env.NODE_ENV !== "production";
|
|
328
328
|
} catch {
|
|
329
329
|
return !0;
|
|
330
330
|
}
|
|
331
|
-
},
|
|
332
|
-
function
|
|
333
|
-
if (!(!
|
|
334
|
-
if (
|
|
331
|
+
}, ne = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), re = /* @__PURE__ */ new Set();
|
|
332
|
+
function G(e, t) {
|
|
333
|
+
if (!(!te() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
|
|
334
|
+
if (ne(n) || ee.has(n)) continue;
|
|
335
335
|
let t = `${e}.${n}`;
|
|
336
|
-
|
|
336
|
+
re.has(t) || (re.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.`));
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/components/warnInvalidValue.js
|
|
341
|
-
var
|
|
341
|
+
var ie = () => {
|
|
342
342
|
try {
|
|
343
343
|
return process.env.NODE_ENV !== "production";
|
|
344
344
|
} catch {
|
|
345
345
|
return !0;
|
|
346
346
|
}
|
|
347
|
-
},
|
|
348
|
-
function
|
|
349
|
-
if (!
|
|
347
|
+
}, ae = /* @__PURE__ */ new Set();
|
|
348
|
+
function K(e, t, n, r) {
|
|
349
|
+
if (!ie() || n == null) return;
|
|
350
350
|
let i = r instanceof Set ? r : new Set(r);
|
|
351
351
|
if (i.has(n)) return;
|
|
352
352
|
let a = `${e}.${t}.${String(n)}`;
|
|
353
|
-
|
|
353
|
+
ae.has(a) || (ae.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.`));
|
|
354
354
|
}
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/components/AppTooltip.jsx
|
|
357
|
-
var
|
|
357
|
+
var oe = {
|
|
358
358
|
start: "left",
|
|
359
359
|
end: "right",
|
|
360
360
|
top: "top",
|
|
361
361
|
bottom: "bottom"
|
|
362
|
-
},
|
|
362
|
+
}, se = [
|
|
363
363
|
"auto",
|
|
364
364
|
"top",
|
|
365
365
|
"bottom",
|
|
@@ -367,7 +367,7 @@ var se = {
|
|
|
367
367
|
"end"
|
|
368
368
|
];
|
|
369
369
|
function ce({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
|
|
370
|
-
|
|
370
|
+
G("AppTooltip", c), K("AppTooltip", "placement", r, se);
|
|
371
371
|
let l = /* @__PURE__ */ E(w, {
|
|
372
372
|
id: s(),
|
|
373
373
|
className: [
|
|
@@ -380,7 +380,7 @@ function ce({ content: e, children: t, placement: r = "top", tone: i = "default"
|
|
|
380
380
|
});
|
|
381
381
|
return /* @__PURE__ */ E(S, {
|
|
382
382
|
trigger: ["hover", "focus"],
|
|
383
|
-
placement:
|
|
383
|
+
placement: oe[r] || r,
|
|
384
384
|
overlay: l,
|
|
385
385
|
children: n(t, c)
|
|
386
386
|
});
|
|
@@ -412,7 +412,7 @@ function he() {
|
|
|
412
412
|
}, 1e3));
|
|
413
413
|
}), fe;
|
|
414
414
|
}
|
|
415
|
-
var J = new Set(
|
|
415
|
+
var J = new Set(U), ge = Object.create(null), _e = Object.create(null), ve = Object.create(null), ye = Object.create(null);
|
|
416
416
|
function be(e) {
|
|
417
417
|
let t = B(e), n = V[t];
|
|
418
418
|
return n ? (_e[t] ||= n().then((e) => {
|
|
@@ -449,18 +449,18 @@ function Te(e, t) {
|
|
|
449
449
|
}, 1e3));
|
|
450
450
|
}), Se[a];
|
|
451
451
|
}
|
|
452
|
-
var Ee =
|
|
452
|
+
var Ee = U, De = /* @__PURE__ */ new Map();
|
|
453
453
|
function Oe(e) {
|
|
454
454
|
for (let [t, n] of Object.entries(e)) De.set(t, n);
|
|
455
455
|
}
|
|
456
456
|
function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i, className: a, color: s, style: c, ...l }) {
|
|
457
|
-
|
|
457
|
+
G("AppIcon", l);
|
|
458
458
|
let u = !!n && n !== "linear", d = r != null && r !== "", p = (e) => d ? q(/* @__PURE__ */ E("span", {
|
|
459
459
|
className: "wui-icon-tip",
|
|
460
460
|
role: "img",
|
|
461
461
|
"aria-label": r,
|
|
462
462
|
children: e
|
|
463
|
-
}), r, i) : e, m =
|
|
463
|
+
}), r, i) : e, m = W[e] !== void 0, h = !m && J.has(e), [, g] = f(0);
|
|
464
464
|
o(() => {
|
|
465
465
|
let t = () => g((e) => e + 1);
|
|
466
466
|
u && m && !de && (me.add(t), he());
|
|
@@ -507,7 +507,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
|
|
|
507
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" })]
|
|
508
508
|
})
|
|
509
509
|
}));
|
|
510
|
-
let v = u && (de?.[n]?.[e] || xe?.[n]?.[e]) ||
|
|
510
|
+
let v = u && (de?.[n]?.[e] || xe?.[n]?.[e]) || W[e] || ge[e];
|
|
511
511
|
return v ? p(/* @__PURE__ */ E("svg", {
|
|
512
512
|
width: t,
|
|
513
513
|
height: t,
|
|
@@ -528,7 +528,7 @@ function Y({ name: e, size: t = 16, variant: n, tooltip: r, tooltipPlacement: i,
|
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region src/components/AppAccordion.jsx
|
|
530
530
|
function ke({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i }) {
|
|
531
|
-
|
|
531
|
+
G("AppAccordion", i);
|
|
532
532
|
let a = s(), o = n || a, [c, l] = f(() => {
|
|
533
533
|
let n = e.map((e, t) => ({
|
|
534
534
|
item: e,
|
|
@@ -598,7 +598,7 @@ var Ae = [
|
|
|
598
598
|
"twotone"
|
|
599
599
|
];
|
|
600
600
|
function je({ icon: e, iconVariant: t, label: n, tooltipPlacement: r = "auto", danger: i = !1, disabled: a = !1, size: o = 20, onClick: s, className: c = "", as: l, href: u, ...d }) {
|
|
601
|
-
|
|
601
|
+
G("AppActionIcon", d), K("AppActionIcon", "iconVariant", t, Ae);
|
|
602
602
|
let f = [
|
|
603
603
|
"u-action",
|
|
604
604
|
i ? "danger" : "",
|
|
@@ -670,7 +670,7 @@ function Fe(e, t, n, r, i) {
|
|
|
670
670
|
}) : null;
|
|
671
671
|
}
|
|
672
672
|
function Ie({ variant: e = "info", children: t, title: n, icon: r, image: i, imageAlt: a = "", imageSize: o, className: s = "", onClose: c, dismissible: l, bordered: u = !0, accent: d = !1, size: f = "md", action: m, role: h = "alert", ...g }) {
|
|
673
|
-
|
|
673
|
+
G("AppAlert", g), K("AppAlert", "size", f, Ne), K("AppAlert", "role", h, Pe);
|
|
674
674
|
let _ = r === void 0 ? Me[e] : r === "none" ? null : r, v = !!i || !!_, y = m != null && m !== !1, b = n ? /* @__PURE__ */ E("div", {
|
|
675
675
|
className: "alert-heading",
|
|
676
676
|
children: n
|
|
@@ -738,7 +738,7 @@ function ze(e, t, n) {
|
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
740
|
function Be({ 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 }) {
|
|
741
|
-
if (
|
|
741
|
+
if (G("AppButton", m), K("AppButton", "variant", t, Object.keys(Le)), K("AppButton", "size", n, Object.keys(Re)), u) return q(/* @__PURE__ */ D("span", {
|
|
742
742
|
className: [
|
|
743
743
|
"btn",
|
|
744
744
|
`btn-${Le[t] ?? "primary"}`,
|
|
@@ -758,7 +758,10 @@ function Be({ children: e, variant: t = "primary", size: n = "md", type: r = "bu
|
|
|
758
758
|
o ? "w-100" : "",
|
|
759
759
|
i ? "is-loading" : "",
|
|
760
760
|
p
|
|
761
|
-
].filter(Boolean).join(" "), _ = (m.as === void 0 || m.as === "button") && l === void 0 && m.to === void 0, v = _ ? {} : {
|
|
761
|
+
].filter(Boolean).join(" "), _ = (m.as === void 0 || m.as === "button") && l === void 0 && m.to === void 0, v = _ ? {} : {
|
|
762
|
+
role: void 0,
|
|
763
|
+
tabIndex: a || i ? -1 : void 0
|
|
764
|
+
};
|
|
762
765
|
return q(/* @__PURE__ */ D(g, {
|
|
763
766
|
type: _ ? r : void 0,
|
|
764
767
|
href: l,
|
|
@@ -783,7 +786,7 @@ function Be({ children: e, variant: t = "primary", size: n = "md", type: r = "bu
|
|
|
783
786
|
//#endregion
|
|
784
787
|
//#region src/components/AppEmptyState.jsx
|
|
785
788
|
function Ve({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
|
|
786
|
-
return
|
|
789
|
+
return G("AppEmptyState", c), /* @__PURE__ */ D("div", {
|
|
787
790
|
className: [
|
|
788
791
|
"empty-state",
|
|
789
792
|
n === "sm" ? "empty-state-sm" : "",
|
|
@@ -814,7 +817,7 @@ function Ve({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
|
|
|
814
817
|
//#endregion
|
|
815
818
|
//#region src/components/AppSpinner.jsx
|
|
816
819
|
function He({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
|
|
817
|
-
|
|
820
|
+
G("AppSpinner", r);
|
|
818
821
|
let { style: i, ...a } = r, o = Number(e), s = Number.isFinite(o) && o > 0;
|
|
819
822
|
return /* @__PURE__ */ E("span", {
|
|
820
823
|
className: `spinner-border${!s && e === "sm" ? " spinner-border-sm" : ""}${n ? ` ${n}` : ""}`,
|
|
@@ -832,7 +835,7 @@ function He({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
|
|
|
832
835
|
//#endregion
|
|
833
836
|
//#region src/components/AppAsyncBlock.jsx
|
|
834
837
|
function Ue({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
|
|
835
|
-
|
|
838
|
+
G("AppAsyncBlock", s);
|
|
836
839
|
let c = `async-block${o ? ` ${o}` : ""}`;
|
|
837
840
|
return e ? /* @__PURE__ */ E("div", {
|
|
838
841
|
className: c,
|
|
@@ -881,7 +884,7 @@ var We = {
|
|
|
881
884
|
auto: "auto"
|
|
882
885
|
};
|
|
883
886
|
function Ge({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
|
|
884
|
-
|
|
887
|
+
G("AppPopover", l);
|
|
885
888
|
let u = s(), [d, p] = f(!1), m = (e) => {
|
|
886
889
|
p(e), o?.(e);
|
|
887
890
|
}, h = /* @__PURE__ */ D(C, {
|
|
@@ -922,7 +925,7 @@ var Ke = {
|
|
|
922
925
|
xl: " infotip-popover-xl"
|
|
923
926
|
};
|
|
924
927
|
function qe({ label: e, children: t, placement: n = "auto", width: r = "md", className: i = "", ...a }) {
|
|
925
|
-
|
|
928
|
+
G("AppInfoTip", a), K("AppInfoTip", "width", r, Object.keys(Ke));
|
|
926
929
|
let [o, s] = f(!1), c = !!e;
|
|
927
930
|
return !c && !t ? null : /* @__PURE__ */ E("span", {
|
|
928
931
|
className: `infotip${i ? ` ${i}` : ""}`,
|
|
@@ -1063,7 +1066,7 @@ function tt(e, t) {
|
|
|
1063
1066
|
//#endregion
|
|
1064
1067
|
//#region src/components/AppAutocomplete.jsx
|
|
1065
1068
|
var nt = 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) {
|
|
1066
|
-
|
|
1069
|
+
G("AppAutocomplete", x);
|
|
1067
1070
|
let C = typeof r == "function", w = s(), T = p || w, { setRef: O, innerRef: k } = Q({
|
|
1068
1071
|
ref: S,
|
|
1069
1072
|
value: e ?? "",
|
|
@@ -1176,7 +1179,7 @@ function st(e) {
|
|
|
1176
1179
|
return Number.isNaN(t) ? 32 : t;
|
|
1177
1180
|
}
|
|
1178
1181
|
function ct({ 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 }) {
|
|
1179
|
-
|
|
1182
|
+
G("AppAvatar", v);
|
|
1180
1183
|
let { style: y, ...b } = v, [x, S] = f(!1);
|
|
1181
1184
|
o(() => {
|
|
1182
1185
|
S(!1);
|
|
@@ -1273,7 +1276,7 @@ function ut(e) {
|
|
|
1273
1276
|
return e == null ? null : typeof e == "number" ? `${e}px` : lt[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${lt[e]}px`;
|
|
1274
1277
|
}
|
|
1275
1278
|
function dt({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
|
|
1276
|
-
|
|
1279
|
+
G("AppAvatarGroup", a);
|
|
1277
1280
|
let { style: o, ...s } = a, c = [
|
|
1278
1281
|
"avatar-group",
|
|
1279
1282
|
n === "normal" ? "" : `avatar-group-${n}`,
|
|
@@ -1297,7 +1300,7 @@ function dt({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
|
|
|
1297
1300
|
//#endregion
|
|
1298
1301
|
//#region src/components/AppBadge.jsx
|
|
1299
1302
|
function ft({ children: e, tone: t, dot: n = !1, tooltip: r, tooltipPlacement: i, className: a = "", ...o }) {
|
|
1300
|
-
return
|
|
1303
|
+
return G("AppBadge", o), q(/* @__PURE__ */ E(m, {
|
|
1301
1304
|
bg: !1,
|
|
1302
1305
|
className: [
|
|
1303
1306
|
t && t !== "neutral" ? `badge-${t}` : "",
|
|
@@ -1318,7 +1321,7 @@ var pt = [
|
|
|
1318
1321
|
"neutral"
|
|
1319
1322
|
];
|
|
1320
1323
|
function mt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
|
|
1321
|
-
|
|
1324
|
+
G("AppBanner", o);
|
|
1322
1325
|
let [s, c] = f(!0);
|
|
1323
1326
|
if (!s) return null;
|
|
1324
1327
|
let l = pt.includes(e) ? e : "info", u = () => {
|
|
@@ -1353,7 +1356,7 @@ function mt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
|
|
|
1353
1356
|
//#endregion
|
|
1354
1357
|
//#region src/components/AppBreadcrumbs.jsx
|
|
1355
1358
|
function ht({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
1356
|
-
return
|
|
1359
|
+
return G("AppBreadcrumbs", r), /* @__PURE__ */ E(h, {
|
|
1357
1360
|
className: n || void 0,
|
|
1358
1361
|
...r,
|
|
1359
1362
|
children: e.map((n, r) => {
|
|
@@ -1378,7 +1381,7 @@ var gt = {
|
|
|
1378
1381
|
lg: 720
|
|
1379
1382
|
};
|
|
1380
1383
|
function _t({ 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 }) {
|
|
1381
|
-
|
|
1384
|
+
G("AppCard", C);
|
|
1382
1385
|
let { style: w, ...O } = C, k = b != null || x != null, A = [
|
|
1383
1386
|
u && u !== "default" ? `card-${u}` : "",
|
|
1384
1387
|
u === "accent" && d && d !== "primary" ? `tone-${d}` : "",
|
|
@@ -1490,7 +1493,7 @@ var vt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
1490
1493
|
]
|
|
1491
1494
|
});
|
|
1492
1495
|
}), yt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
1493
|
-
return
|
|
1496
|
+
return G("AppCheckbox", o), /* @__PURE__ */ E(vt, {
|
|
1494
1497
|
ref: s,
|
|
1495
1498
|
label: e,
|
|
1496
1499
|
id: t,
|
|
@@ -1506,7 +1509,7 @@ var vt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
1506
1509
|
//#endregion
|
|
1507
1510
|
//#region src/components/AppChip.jsx
|
|
1508
1511
|
function bt({ 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 }) {
|
|
1509
|
-
|
|
1512
|
+
G("AppChip", f);
|
|
1510
1513
|
let p = e ?? t, m = [
|
|
1511
1514
|
"chip",
|
|
1512
1515
|
n && n !== "neutral" ? n : "",
|
|
@@ -1572,7 +1575,7 @@ var xt = {
|
|
|
1572
1575
|
lg: 22
|
|
1573
1576
|
};
|
|
1574
1577
|
function wt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s, image: c, imageAlt: l = "", children: u, title: d, description: f, checkIcon: p = "check", checkSize: m = 18, hideCheck: h = !1, size: g = "md", layout: _ = "inline", className: v = "", ...y }) {
|
|
1575
|
-
|
|
1578
|
+
G("AppChoiceCard", y), K("AppChoiceCard", "size", g, Object.keys(xt)), K("AppChoiceCard", "layout", _, Object.keys(St));
|
|
1576
1579
|
let b = xt[g] ?? "", x = St[_] ?? "", S = s ?? Ct[g] ?? Ct.md;
|
|
1577
1580
|
return /* @__PURE__ */ D("label", {
|
|
1578
1581
|
className: `struct-card${c ? " struct-card-img-card" : ""}${b}${x}${h ? " wui-struct-card-no-check" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
|
|
@@ -1624,7 +1627,7 @@ function wt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
|
|
|
1624
1627
|
//#endregion
|
|
1625
1628
|
//#region src/components/AppChoiceChip.jsx
|
|
1626
1629
|
function Tt({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
|
|
1627
|
-
return
|
|
1630
|
+
return G("AppChoiceChip", u), /* @__PURE__ */ D("label", {
|
|
1628
1631
|
className: `choice-chip${i ? " checked" : ""}${c === "sm" ? " choice-chip-sm" : c === "lg" ? " choice-chip-lg" : ""}${l ? ` ${l}` : ""}`,
|
|
1629
1632
|
...u,
|
|
1630
1633
|
children: [
|
|
@@ -1646,7 +1649,7 @@ function Tt({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
|
|
|
1646
1649
|
//#endregion
|
|
1647
1650
|
//#region src/components/AppColorField.jsx
|
|
1648
1651
|
function Et({ 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 }) {
|
|
1649
|
-
|
|
1652
|
+
G("AppColorField", p);
|
|
1650
1653
|
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" : "";
|
|
1651
1654
|
return /* @__PURE__ */ D("div", {
|
|
1652
1655
|
className: `field${f ? ` ${f}` : ""}`,
|
|
@@ -1713,7 +1716,7 @@ function At() {
|
|
|
1713
1716
|
!e || kt || (kt = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
|
|
1714
1717
|
}
|
|
1715
1718
|
function jt({ 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 }) {
|
|
1716
|
-
|
|
1719
|
+
G("AppModal", v), K("AppModal", "size", typeof u == "string" ? u : null, Object.keys(Ot));
|
|
1717
1720
|
let { style: y, ...x } = v;
|
|
1718
1721
|
p && !h && typeof n != "string" && At();
|
|
1719
1722
|
let S = d(null);
|
|
@@ -1811,7 +1814,7 @@ function jt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
|
|
|
1811
1814
|
//#region src/components/AppCommandPalette.jsx
|
|
1812
1815
|
var Mt = "lg";
|
|
1813
1816
|
function Nt({ open: e, onClose: t, query: n = "", onQueryChange: r, placeholder: i = "Search…", groups: a = [], loading: o = !1, emptyText: c = "No results", footer: l, ariaLabel: u = "Search", highlight: d = !0, id: f, className: p = "", ...m }) {
|
|
1814
|
-
|
|
1817
|
+
G("AppCommandPalette", m);
|
|
1815
1818
|
let h = s(), g = f || h;
|
|
1816
1819
|
return /* @__PURE__ */ E(jt, {
|
|
1817
1820
|
open: e,
|
|
@@ -1968,7 +1971,7 @@ function Lt(e) {
|
|
|
1968
1971
|
//#endregion
|
|
1969
1972
|
//#region src/components/AppCompareTable.jsx
|
|
1970
1973
|
function Rt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
|
|
1971
|
-
|
|
1974
|
+
G("AppCompareTable", i);
|
|
1972
1975
|
let a = (e) => e === !0 ? /* @__PURE__ */ E("span", {
|
|
1973
1976
|
className: "compare-yes",
|
|
1974
1977
|
children: /* @__PURE__ */ E(Y, {
|
|
@@ -2005,33 +2008,33 @@ function Rt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
|
|
|
2005
2008
|
//#endregion
|
|
2006
2009
|
//#region src/components/AppInput.jsx
|
|
2007
2010
|
var zt = 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) {
|
|
2008
|
-
|
|
2009
|
-
let [R, z] = f(!1), B = s(), V = _ || B, H = c === "password",
|
|
2010
|
-
|
|
2011
|
-
},
|
|
2011
|
+
G("AppInput", I);
|
|
2012
|
+
let [R, z] = f(!1), B = s(), V = _ || B, H = c === "password", U = H && R ? "text" : c, W = d(null), ee = (e) => {
|
|
2013
|
+
W.current = e, typeof L == "function" ? L(e) : L && (L.current = e);
|
|
2014
|
+
}, te = String(I.value ?? I.defaultValue ?? ""), [ne, re] = f(() => !!te), [ie, ae] = f(() => te.length), K = C && !S, oe = C || w, se = H && !!P, [ce, q] = f(te);
|
|
2012
2015
|
o(() => {
|
|
2013
|
-
!
|
|
2014
|
-
}, [I.value,
|
|
2015
|
-
if (!
|
|
2016
|
+
!se || I.value === void 0 || q(String(I.value ?? ""));
|
|
2017
|
+
}, [I.value, se]), o(() => {
|
|
2018
|
+
if (!oe || I.value === void 0) return;
|
|
2016
2019
|
let e = String(I.value ?? "");
|
|
2017
|
-
|
|
2018
|
-
}, [I.value,
|
|
2020
|
+
re(!!e), ae(e.length);
|
|
2021
|
+
}, [I.value, oe]);
|
|
2019
2022
|
let le = (e) => {
|
|
2020
|
-
|
|
2023
|
+
re(!!e.target.value), ae(e.target.value.length), I.onInput?.(e);
|
|
2021
2024
|
}, ue = (e) => {
|
|
2022
|
-
|
|
2023
|
-
}, de =
|
|
2025
|
+
se && q(e.target.value), oe ? le(e) : I.onInput?.(e);
|
|
2026
|
+
}, de = K ? /* @__PURE__ */ E("button", {
|
|
2024
2027
|
type: "button",
|
|
2025
2028
|
className: "input-clear",
|
|
2026
2029
|
onClick: () => {
|
|
2027
|
-
let e =
|
|
2030
|
+
let e = W.current;
|
|
2028
2031
|
if (!e) return;
|
|
2029
2032
|
let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
|
|
2030
|
-
t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })),
|
|
2033
|
+
t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), re(!1), e.focus();
|
|
2031
2034
|
},
|
|
2032
2035
|
"aria-label": "Clear",
|
|
2033
2036
|
tabIndex: -1,
|
|
2034
|
-
hidden: !
|
|
2037
|
+
hidden: !ne,
|
|
2035
2038
|
children: /* @__PURE__ */ E(Y, {
|
|
2036
2039
|
name: "x",
|
|
2037
2040
|
size: 16
|
|
@@ -2043,13 +2046,13 @@ var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2043
2046
|
n ? "error" : "",
|
|
2044
2047
|
H ? "pw" : "",
|
|
2045
2048
|
g ? "num-input" : "",
|
|
2046
|
-
!(j && e || O || k || g || H || p) && C &&
|
|
2049
|
+
!(j && e || O || k || g || H || p) && C && K ? "has-clear" : "",
|
|
2047
2050
|
M === "bare" ? "input-bare" : "",
|
|
2048
2051
|
b
|
|
2049
2052
|
].filter(Boolean).join(" "), J = /* @__PURE__ */ E(y.Control, {
|
|
2050
2053
|
id: V,
|
|
2051
2054
|
name: v,
|
|
2052
|
-
type:
|
|
2055
|
+
type: U,
|
|
2053
2056
|
className: he,
|
|
2054
2057
|
disabled: S,
|
|
2055
2058
|
required: t,
|
|
@@ -2058,9 +2061,9 @@ var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2058
2061
|
maxLength: T,
|
|
2059
2062
|
...I,
|
|
2060
2063
|
placeholder: j ? " " : I.placeholder,
|
|
2061
|
-
ref:
|
|
2062
|
-
onInput:
|
|
2063
|
-
}), ge = P === !0 || P, _e = ge && typeof ge == "object" && ge.title || "Password Requirements", ve =
|
|
2064
|
+
ref: ee,
|
|
2065
|
+
onInput: oe || se ? ue : I.onInput
|
|
2066
|
+
}), ge = P === !0 || P, _e = ge && typeof ge == "object" && ge.title || "Password Requirements", ve = se ? N(ce, ge) : null, ye = se ? /* @__PURE__ */ E("ul", {
|
|
2064
2067
|
className: "pw-criteria",
|
|
2065
2068
|
"aria-live": "polite",
|
|
2066
2069
|
children: ve.map((e) => /* @__PURE__ */ D("li", {
|
|
@@ -2156,7 +2159,7 @@ var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2156
2159
|
})
|
|
2157
2160
|
]
|
|
2158
2161
|
});
|
|
2159
|
-
be =
|
|
2162
|
+
be = se ? /* @__PURE__ */ E(Ge, {
|
|
2160
2163
|
trigger: e,
|
|
2161
2164
|
triggerType: "focus",
|
|
2162
2165
|
placement: F,
|
|
@@ -2227,8 +2230,8 @@ var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2227
2230
|
children: r
|
|
2228
2231
|
}) : null,
|
|
2229
2232
|
w && /* @__PURE__ */ D("div", {
|
|
2230
|
-
className: `field-count${T &&
|
|
2231
|
-
children: [
|
|
2233
|
+
className: `field-count${T && ie >= T ? " at-limit" : ""}`,
|
|
2234
|
+
children: [ie, T ? ` / ${T}` : ""]
|
|
2232
2235
|
})
|
|
2233
2236
|
]
|
|
2234
2237
|
});
|
|
@@ -2248,7 +2251,7 @@ var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2248
2251
|
//#endregion
|
|
2249
2252
|
//#region src/components/AppConfirmDialog.jsx
|
|
2250
2253
|
function Ht({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, image: c, iconSize: l, confirmPhrase: u, onConfirm: d, onClose: p, loading: m = !1, staticBackdrop: h = !1, placement: g = "center", size: _ = "md", className: v = "", ...y }) {
|
|
2251
|
-
|
|
2254
|
+
G("AppConfirmDialog", y);
|
|
2252
2255
|
let [b, x] = f("");
|
|
2253
2256
|
if (o(() => {
|
|
2254
2257
|
e || x("");
|
|
@@ -2327,7 +2330,7 @@ function Ht({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
2327
2330
|
//#region src/components/AppConsentBanner.jsx
|
|
2328
2331
|
var Ut = ["bottom-left", "bottom-right"];
|
|
2329
2332
|
function Wt({ heading: e, description: t, policyHref: n, policyLabel: r, analyticsDescription: i, functionalDescription: a, marketingDescription: s, position: c = "bottom-left", standalone: l = !1, className: u = "", style: d, ...f }) {
|
|
2330
|
-
|
|
2333
|
+
G("AppConsentBanner", f), K("AppConsentBanner", "position", c, Ut);
|
|
2331
2334
|
let { setRef: p, innerRef: m } = Q({ on: { "wui-consent-save": (e) => {
|
|
2332
2335
|
z(e.detail), m.current && (m.current.preferences = R());
|
|
2333
2336
|
} } });
|
|
@@ -2360,7 +2363,7 @@ var Gt = {
|
|
|
2360
2363
|
lg: 20
|
|
2361
2364
|
};
|
|
2362
2365
|
function Kt({ 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 }) {
|
|
2363
|
-
|
|
2366
|
+
G("AppCopyButton", m), K("AppCopyButton", "size", i, Object.keys(Gt));
|
|
2364
2367
|
let [h, g] = f(!1), _ = d(null);
|
|
2365
2368
|
o(() => () => clearTimeout(_.current), []);
|
|
2366
2369
|
let v = a(async () => {
|
|
@@ -2391,7 +2394,7 @@ var qt = [
|
|
|
2391
2394
|
"md",
|
|
2392
2395
|
"lg"
|
|
2393
2396
|
], Jt = i(function({ value: e, onChange: t, countries: n, placeholder: r = "Select country", searchPlaceholder: i = "Search countries...", searchable: a = !0, clearable: o = !1, size: c = "md", floatingLabel: l = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, className: y = "", fieldClassName: b = "", "aria-label": x, "aria-labelledby": S, "aria-describedby": C, ...w }, T) {
|
|
2394
|
-
|
|
2397
|
+
G("AppCountrySelect", w), K("AppCountrySelect", "size", c, qt);
|
|
2395
2398
|
let O = s(), { setRef: k } = Q({
|
|
2396
2399
|
ref: T,
|
|
2397
2400
|
value: e ?? "",
|
|
@@ -2453,7 +2456,7 @@ var qt = [
|
|
|
2453
2456
|
//#endregion
|
|
2454
2457
|
//#region src/components/AppSkeleton.jsx
|
|
2455
2458
|
function Yt({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
|
|
2456
|
-
return
|
|
2459
|
+
return G("AppSkeleton", a), /* @__PURE__ */ E("span", {
|
|
2457
2460
|
className: `skeleton${r ? ` ${r}` : ""}`,
|
|
2458
2461
|
"aria-hidden": "true",
|
|
2459
2462
|
style: {
|
|
@@ -2487,7 +2490,7 @@ function Qt(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
|
|
|
2487
2490
|
//#endregion
|
|
2488
2491
|
//#region src/components/AppSelectMini.jsx
|
|
2489
2492
|
function $t({ 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 }) {
|
|
2490
|
-
|
|
2493
|
+
G("AppSelectMini", p);
|
|
2491
2494
|
let { setRef: m, innerRef: h } = Q({
|
|
2492
2495
|
value: e ?? "",
|
|
2493
2496
|
onChange: t
|
|
@@ -2529,33 +2532,32 @@ var en = [
|
|
|
2529
2532
|
25,
|
|
2530
2533
|
50
|
|
2531
2534
|
];
|
|
2532
|
-
function tn({ page: e, totalPages: t, pageSize: n,
|
|
2533
|
-
|
|
2534
|
-
let
|
|
2535
|
+
function tn({ page: e, totalPages: t, pageSize: n, onPageChange: r, onPageSizeChange: i, pageSizes: a = en, mode: o = "numbered", showPageSize: s = !0, className: c = "", ...l }) {
|
|
2536
|
+
G("AppTablePagination", l);
|
|
2537
|
+
let u = o === "numbered", d = u ? Qt(e, t) : null;
|
|
2535
2538
|
return /* @__PURE__ */ D("div", {
|
|
2536
|
-
className: `table-pagination${
|
|
2537
|
-
...
|
|
2539
|
+
className: `table-pagination${c ? ` ${c}` : ""}`,
|
|
2540
|
+
...l,
|
|
2538
2541
|
children: [
|
|
2539
|
-
|
|
2542
|
+
s && /* @__PURE__ */ E("span", {
|
|
2540
2543
|
className: "tpg-rows",
|
|
2541
|
-
children:
|
|
2544
|
+
children: /* @__PURE__ */ E($t, {
|
|
2542
2545
|
value: n,
|
|
2543
|
-
onChange: (e) =>
|
|
2546
|
+
onChange: (e) => i(Number(e)),
|
|
2544
2547
|
ariaLabel: "Rows per page",
|
|
2545
|
-
options:
|
|
2548
|
+
options: a.map((e) => ({
|
|
2546
2549
|
value: e,
|
|
2547
|
-
label:
|
|
2550
|
+
label: `${e} per page`
|
|
2548
2551
|
}))
|
|
2549
|
-
})
|
|
2552
|
+
})
|
|
2550
2553
|
}),
|
|
2551
|
-
/* @__PURE__ */ D("span", {
|
|
2554
|
+
!u && /* @__PURE__ */ D("span", {
|
|
2552
2555
|
className: "tpg-range",
|
|
2553
2556
|
children: [
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
a,
|
|
2557
|
+
"Page ",
|
|
2558
|
+
e,
|
|
2557
2559
|
" of ",
|
|
2558
|
-
|
|
2560
|
+
t
|
|
2559
2561
|
]
|
|
2560
2562
|
}),
|
|
2561
2563
|
/* @__PURE__ */ D("div", {
|
|
@@ -2564,7 +2566,7 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
2564
2566
|
/* @__PURE__ */ E("button", {
|
|
2565
2567
|
type: "button",
|
|
2566
2568
|
className: "tpg-arrow",
|
|
2567
|
-
onClick: () =>
|
|
2569
|
+
onClick: () => r(Math.max(1, e - 1)),
|
|
2568
2570
|
disabled: e <= 1,
|
|
2569
2571
|
"aria-label": "Previous page",
|
|
2570
2572
|
children: /* @__PURE__ */ E(Y, {
|
|
@@ -2572,10 +2574,10 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
2572
2574
|
size: 18
|
|
2573
2575
|
})
|
|
2574
2576
|
}),
|
|
2575
|
-
|
|
2577
|
+
u && d.map((t) => typeof t == "number" ? /* @__PURE__ */ E("button", {
|
|
2576
2578
|
type: "button",
|
|
2577
2579
|
className: `tpg-page${t === e ? " is-active" : ""}`,
|
|
2578
|
-
onClick: () =>
|
|
2580
|
+
onClick: () => r(t),
|
|
2579
2581
|
"aria-current": t === e ? "page" : void 0,
|
|
2580
2582
|
"aria-label": `Page ${t}`,
|
|
2581
2583
|
children: t
|
|
@@ -2587,7 +2589,7 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
2587
2589
|
/* @__PURE__ */ E("button", {
|
|
2588
2590
|
type: "button",
|
|
2589
2591
|
className: "tpg-arrow",
|
|
2590
|
-
onClick: () =>
|
|
2592
|
+
onClick: () => r(Math.min(t, e + 1)),
|
|
2591
2593
|
disabled: e >= t,
|
|
2592
2594
|
"aria-label": "Next page",
|
|
2593
2595
|
children: /* @__PURE__ */ E(Y, {
|
|
@@ -2602,152 +2604,198 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
2602
2604
|
}
|
|
2603
2605
|
//#endregion
|
|
2604
2606
|
//#region src/components/AppDataTable.jsx
|
|
2605
|
-
|
|
2607
|
+
var nn = [
|
|
2608
|
+
"comfortable",
|
|
2609
|
+
"cozy",
|
|
2610
|
+
"compact"
|
|
2611
|
+
];
|
|
2612
|
+
function rn(e) {
|
|
2606
2613
|
return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
|
|
2607
2614
|
}
|
|
2608
|
-
function
|
|
2615
|
+
function an(e) {
|
|
2609
2616
|
return e == null || e === "" ? "-" : typeof e == "boolean" ? String(e) : e;
|
|
2610
2617
|
}
|
|
2611
|
-
function
|
|
2612
|
-
|
|
2613
|
-
let
|
|
2618
|
+
function on({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: s = !1, skeletonRows: c = 5, empty: l = "No records found.", emptyFiltered: u, sourceCount: p, rowActions: m, rowActionsLabel: h, pagination: g, ariaLabel: _, className: v = "", wrapperClassName: y = "", selectable: b = !1, selectedIds: x, onToggleRow: S, onToggleAll: C, renderExpanded: w, density: O = "comfortable", striped: k = !1, maxHeight: A, stickyFirstColumn: j = !1, rowStatus: M, ...N }) {
|
|
2619
|
+
G("AppDataTable", N), K("AppDataTable", "density", O, nn);
|
|
2620
|
+
let P = [
|
|
2621
|
+
"table table-ledger",
|
|
2622
|
+
O === "cozy" || O === "compact" ? `wui-table-${O}` : "",
|
|
2623
|
+
k ? "wui-table-striped" : "",
|
|
2624
|
+
j ? "wui-table-sticky-first" : "",
|
|
2625
|
+
v
|
|
2626
|
+
].filter(Boolean).join(" "), F = typeof w == "function", [I, L] = f(() => /* @__PURE__ */ new Set()), R = (e) => L((t) => {
|
|
2614
2627
|
let n = new Set(t);
|
|
2615
2628
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2616
|
-
}),
|
|
2617
|
-
|
|
2618
|
-
|
|
2629
|
+
}), z = e.some((e) => typeof e.footer == "function"), B = A !== void 0, V = [
|
|
2630
|
+
"table-wrap",
|
|
2631
|
+
B ? "wui-table-scroll" : "",
|
|
2632
|
+
y
|
|
2633
|
+
].filter(Boolean).join(" "), H = B ? { maxHeight: A } : void 0, U = Math.max(1, e.length + +!!m + +!!b + +!!F), W = b && n ? n.reduce((e, t, n) => e + +!!x?.has(r(t, n)), 0) : 0, ee = b && n && n.length > 0 && W === n.length, te = W > 0 && !ee, ne = (e) => {
|
|
2634
|
+
e && (e.indeterminate = te);
|
|
2635
|
+
}, re = d(null);
|
|
2636
|
+
o(() => {
|
|
2637
|
+
let e = re.current;
|
|
2638
|
+
if (!e) return;
|
|
2639
|
+
let t = (e) => {
|
|
2640
|
+
let t = e.target.closest?.(".u-name");
|
|
2641
|
+
t && !t.title && (t.scrollWidth > t.clientWidth || t.scrollHeight > t.clientHeight) && (t.title = t.textContent.trim());
|
|
2642
|
+
};
|
|
2643
|
+
return e.addEventListener("mouseover", t), e.addEventListener("focusin", t), () => {
|
|
2644
|
+
e.removeEventListener("mouseover", t), e.removeEventListener("focusin", t);
|
|
2645
|
+
};
|
|
2646
|
+
}, []);
|
|
2647
|
+
let ie = u !== void 0 && p > 0 ? u : l;
|
|
2619
2648
|
return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
|
|
2620
|
-
|
|
2649
|
+
ref: re,
|
|
2650
|
+
className: V,
|
|
2651
|
+
style: H,
|
|
2621
2652
|
tabIndex: 0,
|
|
2622
|
-
...
|
|
2653
|
+
...N,
|
|
2623
2654
|
children: [/* @__PURE__ */ D("table", {
|
|
2624
|
-
className:
|
|
2625
|
-
"aria-label":
|
|
2626
|
-
children: [
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
style: e.width ? { width: e.width } : void 0,
|
|
2650
|
-
tabIndex: n ? 0 : void 0,
|
|
2651
|
-
"aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
|
|
2652
|
-
onClick: n ? () => a(e.key) : void 0,
|
|
2653
|
-
onKeyDown: n ? (t) => {
|
|
2654
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), a(e.key));
|
|
2655
|
-
} : void 0,
|
|
2656
|
-
children: [e.label, n && /* @__PURE__ */ E("span", {
|
|
2657
|
-
className: "sort-icon",
|
|
2655
|
+
className: P,
|
|
2656
|
+
"aria-label": _,
|
|
2657
|
+
children: [
|
|
2658
|
+
/* @__PURE__ */ E("thead", { children: /* @__PURE__ */ D("tr", { children: [
|
|
2659
|
+
F && /* @__PURE__ */ E("th", {
|
|
2660
|
+
className: "wui-expand-cell",
|
|
2661
|
+
children: /* @__PURE__ */ E("span", {
|
|
2662
|
+
className: "visually-hidden",
|
|
2663
|
+
children: "Expand"
|
|
2664
|
+
})
|
|
2665
|
+
}),
|
|
2666
|
+
b && /* @__PURE__ */ E("th", {
|
|
2667
|
+
className: "wui-select-cell",
|
|
2668
|
+
children: /* @__PURE__ */ E("input", {
|
|
2669
|
+
ref: ne,
|
|
2670
|
+
type: "checkbox",
|
|
2671
|
+
className: "wui-check",
|
|
2672
|
+
checked: ee,
|
|
2673
|
+
onChange: (e) => C?.(e.target.checked),
|
|
2674
|
+
"aria-label": "Select all rows"
|
|
2675
|
+
})
|
|
2676
|
+
}),
|
|
2677
|
+
e.map((e, t) => {
|
|
2678
|
+
let n = !!(e.sortable && a), r = i && i.key === e.key, o = e.align === "num" || e.align === "end", s = n && /* @__PURE__ */ E("span", {
|
|
2679
|
+
className: `sort-icon${o ? " wui-sort-lead" : ""}`,
|
|
2658
2680
|
children: /* @__PURE__ */ E(Y, {
|
|
2659
2681
|
name: "chevrons-up-down",
|
|
2660
2682
|
size: 14
|
|
2661
2683
|
})
|
|
2662
|
-
})
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2684
|
+
});
|
|
2685
|
+
return /* @__PURE__ */ D("th", {
|
|
2686
|
+
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + (e.nowrap ? "text-nowrap " : "") + rn(e.align),
|
|
2687
|
+
style: e.width || e.minWidth ? {
|
|
2688
|
+
width: e.width,
|
|
2689
|
+
minWidth: e.minWidth
|
|
2690
|
+
} : void 0,
|
|
2691
|
+
tabIndex: n ? 0 : void 0,
|
|
2692
|
+
"aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
|
|
2693
|
+
onClick: n ? () => a(e.key) : void 0,
|
|
2694
|
+
onKeyDown: n ? (t) => {
|
|
2695
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), a(e.key));
|
|
2696
|
+
} : void 0,
|
|
2697
|
+
children: [
|
|
2698
|
+
o && s,
|
|
2699
|
+
e.label,
|
|
2700
|
+
!o && s
|
|
2701
|
+
]
|
|
2702
|
+
}, e.key);
|
|
2703
|
+
}),
|
|
2704
|
+
m && (h ? /* @__PURE__ */ E("th", {
|
|
2705
|
+
className: "wui-cell-end",
|
|
2706
|
+
children: h
|
|
2707
|
+
}) : /* @__PURE__ */ E("th", {
|
|
2708
|
+
className: "wui-cell-end",
|
|
2709
|
+
children: /* @__PURE__ */ E("span", {
|
|
2710
|
+
className: "visually-hidden",
|
|
2711
|
+
children: "Actions"
|
|
2712
|
+
})
|
|
2713
|
+
}))
|
|
2714
|
+
] }) }),
|
|
2715
|
+
/* @__PURE__ */ E("tbody", { children: s ? /* @__PURE__ */ E(Xt, {
|
|
2716
|
+
rows: c,
|
|
2717
|
+
cols: U
|
|
2718
|
+
}) : n?.length ? n.map((n, i) => {
|
|
2719
|
+
let a = r(n, i), o = F && I.has(a), s = String(a).replace(/[^a-z0-9]/gi, "_");
|
|
2720
|
+
return /* @__PURE__ */ D(t, { children: [/* @__PURE__ */ D("tr", {
|
|
2721
|
+
className: b && x?.has(a) ? "is-selected" : void 0,
|
|
2722
|
+
"data-status": M?.(n) || void 0,
|
|
2723
|
+
children: [
|
|
2724
|
+
F && /* @__PURE__ */ E("td", {
|
|
2725
|
+
className: "wui-expand-cell",
|
|
2726
|
+
children: /* @__PURE__ */ E("button", {
|
|
2727
|
+
type: "button",
|
|
2728
|
+
className: `wui-expand-toggle${o ? " is-open" : ""}`,
|
|
2729
|
+
"aria-expanded": o,
|
|
2730
|
+
"aria-controls": o ? `${s}-expanded` : void 0,
|
|
2731
|
+
"aria-label": o ? "Collapse row" : "Expand row",
|
|
2732
|
+
onClick: () => R(a),
|
|
2733
|
+
children: /* @__PURE__ */ E(Y, {
|
|
2734
|
+
name: "chevron-down",
|
|
2735
|
+
size: 16
|
|
2736
|
+
})
|
|
2695
2737
|
})
|
|
2696
|
-
})
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
})
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
})
|
|
2725
|
-
})
|
|
2726
|
-
|
|
2727
|
-
|
|
2738
|
+
}),
|
|
2739
|
+
b && /* @__PURE__ */ E("td", {
|
|
2740
|
+
className: "wui-select-cell",
|
|
2741
|
+
children: /* @__PURE__ */ E("input", {
|
|
2742
|
+
type: "checkbox",
|
|
2743
|
+
className: "wui-check",
|
|
2744
|
+
checked: x?.has(a) || !1,
|
|
2745
|
+
onChange: () => S?.(a),
|
|
2746
|
+
"aria-label": "Select row"
|
|
2747
|
+
})
|
|
2748
|
+
}),
|
|
2749
|
+
e.map((e, t) => /* @__PURE__ */ E("td", {
|
|
2750
|
+
className: (t === 0 ? "wui-name-cell " : "") + (e.nowrap ? "text-nowrap " : "") + rn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
|
|
2751
|
+
style: e.cellStyle,
|
|
2752
|
+
children: e.render ? e.render(n) : an(n[e.key])
|
|
2753
|
+
}, e.key)),
|
|
2754
|
+
m && /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E("div", {
|
|
2755
|
+
className: "u-row-actions",
|
|
2756
|
+
children: m(n)
|
|
2757
|
+
}) })
|
|
2758
|
+
]
|
|
2759
|
+
}), o && /* @__PURE__ */ E("tr", {
|
|
2760
|
+
className: "wui-row-expanded",
|
|
2761
|
+
children: /* @__PURE__ */ E("td", {
|
|
2762
|
+
id: `${s}-expanded`,
|
|
2763
|
+
colSpan: U,
|
|
2764
|
+
children: w(n)
|
|
2765
|
+
})
|
|
2766
|
+
})] }, a);
|
|
2767
|
+
}) : null }),
|
|
2768
|
+
z && !s && n?.length > 0 && /* @__PURE__ */ E("tfoot", { children: /* @__PURE__ */ D("tr", { children: [
|
|
2769
|
+
F && /* @__PURE__ */ E("td", { className: "wui-expand-cell" }),
|
|
2770
|
+
b && /* @__PURE__ */ E("td", { className: "wui-select-cell" }),
|
|
2771
|
+
e.map((e, t) => /* @__PURE__ */ E("td", {
|
|
2772
|
+
className: (t === 0 ? "wui-name-cell " : "") + (e.nowrap ? "text-nowrap " : "") + rn(e.align),
|
|
2773
|
+
children: e.footer ? e.footer(n) : null
|
|
2774
|
+
}, e.key)),
|
|
2775
|
+
m && /* @__PURE__ */ E("td", {})
|
|
2776
|
+
] }) })
|
|
2777
|
+
]
|
|
2778
|
+
}), !s && !n?.length && /* @__PURE__ */ E("div", {
|
|
2728
2779
|
className: "tbl-empty-block",
|
|
2729
|
-
children: typeof
|
|
2780
|
+
children: typeof ie == "string" ? /* @__PURE__ */ E("div", {
|
|
2730
2781
|
className: "tbl-empty-plain",
|
|
2731
|
-
children:
|
|
2732
|
-
}) :
|
|
2782
|
+
children: ie
|
|
2783
|
+
}) : ie
|
|
2733
2784
|
})]
|
|
2734
|
-
}),
|
|
2735
|
-
page:
|
|
2736
|
-
totalPages:
|
|
2737
|
-
pageSize:
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
onPageSizeChange: m.setPageSize,
|
|
2743
|
-
pageSizes: m.pageSizes,
|
|
2744
|
-
mode: m.mode
|
|
2785
|
+
}), g && g.total > 0 && /* @__PURE__ */ E(tn, {
|
|
2786
|
+
page: g.page,
|
|
2787
|
+
totalPages: g.totalPages,
|
|
2788
|
+
pageSize: g.pageSize,
|
|
2789
|
+
onPageChange: g.setPage,
|
|
2790
|
+
onPageSizeChange: g.setPageSize,
|
|
2791
|
+
pageSizes: g.pageSizes,
|
|
2792
|
+
mode: g.mode
|
|
2745
2793
|
})] });
|
|
2746
2794
|
}
|
|
2747
2795
|
//#endregion
|
|
2748
2796
|
//#region src/components/AppDatePicker.jsx
|
|
2749
|
-
var
|
|
2750
|
-
|
|
2797
|
+
var sn = 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) {
|
|
2798
|
+
G("AppDatePicker", v);
|
|
2751
2799
|
let b = s(), x = m || b, { setRef: S } = Q({
|
|
2752
2800
|
ref: y,
|
|
2753
2801
|
value: e ?? "",
|
|
@@ -2790,8 +2838,8 @@ var on = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
2790
2838
|
})
|
|
2791
2839
|
]
|
|
2792
2840
|
});
|
|
2793
|
-
}),
|
|
2794
|
-
|
|
2841
|
+
}), cn = 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) {
|
|
2842
|
+
G("AppDateRangePicker", x);
|
|
2795
2843
|
let C = s(), w = _ || C, { setRef: T, innerRef: O } = Q({
|
|
2796
2844
|
ref: S,
|
|
2797
2845
|
onChange: n
|
|
@@ -2851,8 +2899,8 @@ var on = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
2851
2899
|
});
|
|
2852
2900
|
//#endregion
|
|
2853
2901
|
//#region src/components/AppDescriptions.jsx
|
|
2854
|
-
function
|
|
2855
|
-
return
|
|
2902
|
+
function ln({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
|
|
2903
|
+
return G("AppDescriptions", o), /* @__PURE__ */ D("div", {
|
|
2856
2904
|
className: [
|
|
2857
2905
|
"descs",
|
|
2858
2906
|
`descs-col-${t}`,
|
|
@@ -2885,18 +2933,18 @@ function cn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
2885
2933
|
}
|
|
2886
2934
|
//#endregion
|
|
2887
2935
|
//#region src/components/AppDropdown.jsx
|
|
2888
|
-
var
|
|
2889
|
-
function
|
|
2936
|
+
var un = !1;
|
|
2937
|
+
function dn() {
|
|
2890
2938
|
let e = !0;
|
|
2891
2939
|
try {
|
|
2892
2940
|
e = process.env.NODE_ENV !== "production";
|
|
2893
2941
|
} catch {
|
|
2894
2942
|
e = !0;
|
|
2895
2943
|
}
|
|
2896
|
-
!e ||
|
|
2944
|
+
!e || un || (un = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
|
|
2897
2945
|
}
|
|
2898
|
-
function
|
|
2899
|
-
|
|
2946
|
+
function fn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: s = [], menuClassName: c = "", linkComponent: l, children: u, trigger: d, ...p }) {
|
|
2947
|
+
G("AppDropdown", p), !d && !i && !r && dn();
|
|
2900
2948
|
let m = n ?? (d ? "wui-dropdown-trigger" : "topbar-icon-btn"), [h, g] = f(!1);
|
|
2901
2949
|
return o(() => {
|
|
2902
2950
|
if (!h) return;
|
|
@@ -2913,7 +2961,7 @@ function dn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
2913
2961
|
onToggle: (e) => g(e),
|
|
2914
2962
|
...p,
|
|
2915
2963
|
children: [/* @__PURE__ */ E(v.Toggle, {
|
|
2916
|
-
as:
|
|
2964
|
+
as: pn,
|
|
2917
2965
|
icon: e,
|
|
2918
2966
|
iconSize: t,
|
|
2919
2967
|
btnClassName: m,
|
|
@@ -2949,7 +2997,7 @@ function dn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
2949
2997
|
})]
|
|
2950
2998
|
});
|
|
2951
2999
|
}
|
|
2952
|
-
var
|
|
3000
|
+
var pn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
|
|
2953
3001
|
return /* @__PURE__ */ E("button", {
|
|
2954
3002
|
ref: s,
|
|
2955
3003
|
type: "button",
|
|
@@ -2964,16 +3012,16 @@ var fn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
|
|
|
2964
3012
|
});
|
|
2965
3013
|
//#endregion
|
|
2966
3014
|
//#region src/lib/fileItem.js
|
|
2967
|
-
function
|
|
3015
|
+
function mn(e) {
|
|
2968
3016
|
return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
|
|
2969
3017
|
}
|
|
2970
|
-
function
|
|
3018
|
+
function hn(e) {
|
|
2971
3019
|
return e instanceof File ? e.name : e?.name;
|
|
2972
3020
|
}
|
|
2973
|
-
function
|
|
3021
|
+
function gn(e) {
|
|
2974
3022
|
return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
|
|
2975
3023
|
}
|
|
2976
|
-
function
|
|
3024
|
+
function _n(e, t) {
|
|
2977
3025
|
let [n, r] = f(null);
|
|
2978
3026
|
return o(() => {
|
|
2979
3027
|
if (!t) {
|
|
@@ -2989,8 +3037,8 @@ function gn(e, t) {
|
|
|
2989
3037
|
}
|
|
2990
3038
|
//#endregion
|
|
2991
3039
|
//#region src/lib/FileItemRow.jsx
|
|
2992
|
-
function
|
|
2993
|
-
let i =
|
|
3040
|
+
function vn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
3041
|
+
let i = _n(e, t), a = hn(e), o = gn(e);
|
|
2994
3042
|
return /* @__PURE__ */ D("div", {
|
|
2995
3043
|
className: "attach-item",
|
|
2996
3044
|
children: [
|
|
@@ -3029,9 +3077,9 @@ function _n({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
|
3029
3077
|
}
|
|
3030
3078
|
//#endregion
|
|
3031
3079
|
//#region src/components/AppFileAttachment.jsx
|
|
3032
|
-
function
|
|
3033
|
-
|
|
3034
|
-
let m = s(), h = d || m, [g, _] = f(""), v = i && Array.isArray(t) ? t : t ? [t] : [], y = F(a), b = (e) => e instanceof File ? P(e) : y || P(e), x = !i && v.length === 1 && b(v[0]), S =
|
|
3080
|
+
function yn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = k, maxSizeMb: o = A, optional: c = !1, validate: l = !0, error: u, id: d, ...p }) {
|
|
3081
|
+
G("AppFileAttachment", p);
|
|
3082
|
+
let m = s(), h = d || m, [g, _] = f(""), v = i && Array.isArray(t) ? t : t ? [t] : [], y = F(a), b = (e) => e instanceof File ? P(e) : y || P(e), x = !i && v.length === 1 && b(v[0]), S = bn(a, o);
|
|
3035
3083
|
function C(e) {
|
|
3036
3084
|
let n = Array.from(e.target.files || []);
|
|
3037
3085
|
if (e.target.value = "", !n.length) return;
|
|
@@ -3048,8 +3096,8 @@ function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
3048
3096
|
s.push(e);
|
|
3049
3097
|
}
|
|
3050
3098
|
if (_(c), s.length) if (i) {
|
|
3051
|
-
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(
|
|
3052
|
-
r(e.concat(s.filter((e) => !n.has(
|
|
3099
|
+
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(mn));
|
|
3100
|
+
r(e.concat(s.filter((e) => !n.has(mn(e)))));
|
|
3053
3101
|
} else r(s[0]);
|
|
3054
3102
|
}
|
|
3055
3103
|
function w(e) {
|
|
@@ -3104,17 +3152,17 @@ function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
3104
3152
|
onChange: C,
|
|
3105
3153
|
...p
|
|
3106
3154
|
})] }),
|
|
3107
|
-
x ? /* @__PURE__ */ E(
|
|
3155
|
+
x ? /* @__PURE__ */ E(xn, {
|
|
3108
3156
|
item: v[0],
|
|
3109
3157
|
isImage: !0,
|
|
3110
3158
|
onRemove: () => w(0)
|
|
3111
3159
|
}) : v.length > 0 && /* @__PURE__ */ E("div", {
|
|
3112
3160
|
className: "attach-list",
|
|
3113
|
-
children: v.map((e, t) => /* @__PURE__ */ E(
|
|
3161
|
+
children: v.map((e, t) => /* @__PURE__ */ E(vn, {
|
|
3114
3162
|
item: e,
|
|
3115
3163
|
isImage: b(e),
|
|
3116
3164
|
onRemove: () => w(t)
|
|
3117
|
-
},
|
|
3165
|
+
}, mn(e)))
|
|
3118
3166
|
}),
|
|
3119
3167
|
O && /* @__PURE__ */ E("div", {
|
|
3120
3168
|
className: "field-error",
|
|
@@ -3124,12 +3172,12 @@ function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
3124
3172
|
]
|
|
3125
3173
|
});
|
|
3126
3174
|
}
|
|
3127
|
-
function
|
|
3175
|
+
function bn(e, t) {
|
|
3128
3176
|
let n = e?.trim() ? j(e) : "", r = t > 0 ? `up to ${t} MB` : "";
|
|
3129
3177
|
return n && r ? `${n}, ${r}` : r ? `Up to ${t} MB` : n;
|
|
3130
3178
|
}
|
|
3131
|
-
function
|
|
3132
|
-
let r =
|
|
3179
|
+
function xn({ item: e, isImage: t, onRemove: n }) {
|
|
3180
|
+
let r = _n(e, t), i = hn(e), a = gn(e);
|
|
3133
3181
|
return /* @__PURE__ */ D("div", {
|
|
3134
3182
|
className: "attach-preview",
|
|
3135
3183
|
children: [/* @__PURE__ */ D("div", {
|
|
@@ -3161,8 +3209,8 @@ function bn({ item: e, isImage: t, onRemove: n }) {
|
|
|
3161
3209
|
}
|
|
3162
3210
|
//#endregion
|
|
3163
3211
|
//#region src/components/AppFilePicker.jsx
|
|
3164
|
-
function
|
|
3165
|
-
|
|
3212
|
+
function Sn({ 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 }) {
|
|
3213
|
+
G("AppFilePicker", b);
|
|
3166
3214
|
let [x, S] = f(null), [C, w] = f(!1), [T, O] = f(""), k = d(null), M = s(), N = r || M;
|
|
3167
3215
|
o(() => {
|
|
3168
3216
|
if (!a && t instanceof File && P(t)) {
|
|
@@ -3171,16 +3219,16 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3171
3219
|
}
|
|
3172
3220
|
S(null);
|
|
3173
3221
|
}, [t, a]);
|
|
3174
|
-
let I = a ? Array.isArray(t) ? t : t ? [t] : [] : [], R = m || T, z = R ? `${N}-error` : void 0, B = h && !R ? `${N}-hint` : void 0, V = z || B, H = F(l),
|
|
3222
|
+
let I = a ? Array.isArray(t) ? t : t ? [t] : [] : [], R = m || T, z = R ? `${N}-error` : void 0, B = h && !R ? `${N}-hint` : void 0, V = z || B, H = F(l), U = !a && !!t, W = U && (t instanceof File ? P(t) : H || P(t)), ee = t?.name, te = W ? t?.url || x : null, ne = W ? "image" : "file", re = e ? `Change ${e}` : `Change ${ne}`, ie = e ? `Remove ${e}` : `Remove ${ne}`, ae = e ? `${e} preview` : `Selected ${ne} preview`, K = (e) => {
|
|
3175
3223
|
let t = L(e, {
|
|
3176
3224
|
accept: l,
|
|
3177
3225
|
maxSizeMb: u
|
|
3178
3226
|
});
|
|
3179
3227
|
return t ? (O(t), !1) : (O(""), i(e), !0);
|
|
3180
|
-
},
|
|
3228
|
+
}, oe = (e) => {
|
|
3181
3229
|
let n = Array.from(e || []);
|
|
3182
3230
|
if (!n.length) return;
|
|
3183
|
-
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(
|
|
3231
|
+
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(mn)), o = "", s = [];
|
|
3184
3232
|
for (let e of n) {
|
|
3185
3233
|
let t = L(e, {
|
|
3186
3234
|
accept: l,
|
|
@@ -3190,25 +3238,25 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3190
3238
|
o ||= t;
|
|
3191
3239
|
continue;
|
|
3192
3240
|
}
|
|
3193
|
-
a.has(
|
|
3241
|
+
a.has(mn(e)) || (a.add(mn(e)), s.push(e));
|
|
3194
3242
|
}
|
|
3195
3243
|
let d = r.concat(s);
|
|
3196
3244
|
c && d.length > c && (d = d.slice(0, c), o ||= `Up to ${c} files.`), O(o), i(d);
|
|
3197
|
-
},
|
|
3245
|
+
}, se = (e) => {
|
|
3198
3246
|
if (a) {
|
|
3199
|
-
|
|
3247
|
+
oe(e.target.files);
|
|
3200
3248
|
return;
|
|
3201
3249
|
}
|
|
3202
3250
|
let t = e.target.files?.[0] || null;
|
|
3203
|
-
t && (
|
|
3251
|
+
t && (K(t) || (e.target.value = ""));
|
|
3204
3252
|
}, ce = (e) => {
|
|
3205
3253
|
if (e.preventDefault(), w(!1), g) return;
|
|
3206
3254
|
if (a) {
|
|
3207
|
-
|
|
3255
|
+
oe(e.dataTransfer.files);
|
|
3208
3256
|
return;
|
|
3209
3257
|
}
|
|
3210
3258
|
let t = e.dataTransfer.files?.[0];
|
|
3211
|
-
t &&
|
|
3259
|
+
t && K(t);
|
|
3212
3260
|
}, le = (e) => {
|
|
3213
3261
|
O(""), i(I.filter((t, n) => n !== e));
|
|
3214
3262
|
}, ue = () => k.current?.click(), de = g ? /* @__PURE__ */ E("span", {
|
|
@@ -3231,7 +3279,7 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3231
3279
|
onClick: (e) => {
|
|
3232
3280
|
e.currentTarget.value = "";
|
|
3233
3281
|
},
|
|
3234
|
-
onChange:
|
|
3282
|
+
onChange: se,
|
|
3235
3283
|
...b
|
|
3236
3284
|
});
|
|
3237
3285
|
return /* @__PURE__ */ D("div", {
|
|
@@ -3242,7 +3290,7 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3242
3290
|
htmlFor: N,
|
|
3243
3291
|
children: [e, p && /* @__PURE__ */ E(Z, {})]
|
|
3244
3292
|
}),
|
|
3245
|
-
|
|
3293
|
+
U ? /* @__PURE__ */ D("div", {
|
|
3246
3294
|
className: `file-preview${R ? " error" : ""}${_ ? ` ${_}` : ""}`,
|
|
3247
3295
|
style: y,
|
|
3248
3296
|
"aria-busy": g || void 0,
|
|
@@ -3250,12 +3298,12 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3250
3298
|
/* @__PURE__ */ D("button", {
|
|
3251
3299
|
type: "button",
|
|
3252
3300
|
className: "file-preview-open",
|
|
3253
|
-
"aria-label":
|
|
3301
|
+
"aria-label": re,
|
|
3254
3302
|
onClick: ue,
|
|
3255
3303
|
disabled: g,
|
|
3256
|
-
children: [
|
|
3257
|
-
src:
|
|
3258
|
-
alt:
|
|
3304
|
+
children: [W && te ? /* @__PURE__ */ E("img", {
|
|
3305
|
+
src: te,
|
|
3306
|
+
alt: ae,
|
|
3259
3307
|
className: "file-preview-img"
|
|
3260
3308
|
}) : /* @__PURE__ */ D("span", {
|
|
3261
3309
|
className: "file-preview-file",
|
|
@@ -3264,7 +3312,7 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3264
3312
|
size: 28
|
|
3265
3313
|
}), /* @__PURE__ */ E("span", {
|
|
3266
3314
|
className: "file-preview-file-name",
|
|
3267
|
-
children:
|
|
3315
|
+
children: ee
|
|
3268
3316
|
})]
|
|
3269
3317
|
}), /* @__PURE__ */ E("span", {
|
|
3270
3318
|
className: "file-preview-overlay",
|
|
@@ -3272,11 +3320,11 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3272
3320
|
className: "file-preview-cta",
|
|
3273
3321
|
children: [
|
|
3274
3322
|
/* @__PURE__ */ E(Y, {
|
|
3275
|
-
name:
|
|
3323
|
+
name: W ? "image" : "file-text",
|
|
3276
3324
|
size: 16
|
|
3277
3325
|
}),
|
|
3278
3326
|
" ",
|
|
3279
|
-
|
|
3327
|
+
W ? "Change image" : "Change file"
|
|
3280
3328
|
]
|
|
3281
3329
|
})
|
|
3282
3330
|
})]
|
|
@@ -3284,14 +3332,14 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3284
3332
|
q(/* @__PURE__ */ E("button", {
|
|
3285
3333
|
type: "button",
|
|
3286
3334
|
className: "file-preview-remove",
|
|
3287
|
-
"aria-label":
|
|
3335
|
+
"aria-label": ie,
|
|
3288
3336
|
onClick: () => i(null),
|
|
3289
3337
|
disabled: g,
|
|
3290
3338
|
children: /* @__PURE__ */ E(Y, {
|
|
3291
3339
|
name: "x",
|
|
3292
3340
|
size: 16
|
|
3293
3341
|
})
|
|
3294
|
-
}),
|
|
3342
|
+
}), ie),
|
|
3295
3343
|
fe,
|
|
3296
3344
|
de
|
|
3297
3345
|
]
|
|
@@ -3335,12 +3383,12 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3335
3383
|
de,
|
|
3336
3384
|
a && I.length > 0 && /* @__PURE__ */ E("div", {
|
|
3337
3385
|
className: "attach-list",
|
|
3338
|
-
children: I.map((e, t) => /* @__PURE__ */ E(
|
|
3386
|
+
children: I.map((e, t) => /* @__PURE__ */ E(vn, {
|
|
3339
3387
|
item: e,
|
|
3340
3388
|
isImage: e instanceof File ? P(e) : H || P(e),
|
|
3341
3389
|
noun: "file",
|
|
3342
3390
|
onRemove: () => le(t)
|
|
3343
|
-
},
|
|
3391
|
+
}, mn(e)))
|
|
3344
3392
|
})
|
|
3345
3393
|
]
|
|
3346
3394
|
}),
|
|
@@ -3358,8 +3406,8 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
3358
3406
|
}
|
|
3359
3407
|
//#endregion
|
|
3360
3408
|
//#region src/components/AppFloatingDock.jsx
|
|
3361
|
-
function
|
|
3362
|
-
return
|
|
3409
|
+
function Cn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
|
|
3410
|
+
return G("AppFloatingDock", s), /* @__PURE__ */ E("wui-dock", {
|
|
3363
3411
|
role: "navigation",
|
|
3364
3412
|
"aria-label": n,
|
|
3365
3413
|
static: r ? void 0 : "",
|
|
@@ -3400,8 +3448,8 @@ function Sn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
|
|
|
3400
3448
|
}
|
|
3401
3449
|
//#endregion
|
|
3402
3450
|
//#region src/components/AppFormActions.jsx
|
|
3403
|
-
function
|
|
3404
|
-
return
|
|
3451
|
+
function wn({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
|
|
3452
|
+
return G("AppFormActions", i), /* @__PURE__ */ E("div", {
|
|
3405
3453
|
className: [
|
|
3406
3454
|
"form-actions",
|
|
3407
3455
|
t ? "form-actions-sticky" : "",
|
|
@@ -3414,8 +3462,8 @@ function Cn({ children: e, sticky: t = !1, align: n = "end", className: r = "",
|
|
|
3414
3462
|
}
|
|
3415
3463
|
//#endregion
|
|
3416
3464
|
//#region src/components/AppFormRow.jsx
|
|
3417
|
-
function
|
|
3418
|
-
|
|
3465
|
+
function Tn({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
3466
|
+
G("AppFormRow", r);
|
|
3419
3467
|
let { style: i, ...a } = r;
|
|
3420
3468
|
return /* @__PURE__ */ E("div", {
|
|
3421
3469
|
className: ["form-row-grid", n].filter(Boolean).join(" "),
|
|
@@ -3429,8 +3477,8 @@ function wn({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
|
3429
3477
|
}
|
|
3430
3478
|
//#endregion
|
|
3431
3479
|
//#region src/components/AppFormSection.jsx
|
|
3432
|
-
function
|
|
3433
|
-
return
|
|
3480
|
+
function En({ children: e, title: t, description: n, className: r = "", ...i }) {
|
|
3481
|
+
return G("AppFormSection", i), /* @__PURE__ */ D("section", {
|
|
3434
3482
|
className: ["form-section", r].filter(Boolean).join(" "),
|
|
3435
3483
|
...i,
|
|
3436
3484
|
children: [(t != null || n != null) && /* @__PURE__ */ D("div", {
|
|
@@ -3450,8 +3498,8 @@ function Tn({ children: e, title: t, description: n, className: r = "", ...i })
|
|
|
3450
3498
|
}
|
|
3451
3499
|
//#endregion
|
|
3452
3500
|
//#region src/components/AppInfoList.jsx
|
|
3453
|
-
function
|
|
3454
|
-
return
|
|
3501
|
+
function Dn({ items: e = [], className: t = "", ...n }) {
|
|
3502
|
+
return G("AppInfoList", n), /* @__PURE__ */ E("div", {
|
|
3455
3503
|
className: `info-list${t ? ` ${t}` : ""}`,
|
|
3456
3504
|
...n,
|
|
3457
3505
|
children: e.map((e, t) => {
|
|
@@ -3481,23 +3529,23 @@ function En({ items: e = [], className: t = "", ...n }) {
|
|
|
3481
3529
|
}
|
|
3482
3530
|
//#endregion
|
|
3483
3531
|
//#region src/components/AppKpiTile.jsx
|
|
3484
|
-
var
|
|
3485
|
-
function kn(e) {
|
|
3486
|
-
if (!e || e.length < 2) return `0,${On / 2} ${Dn},${On / 2}`;
|
|
3487
|
-
let t = Math.min(...e), n = Math.max(...e) - t, r = Dn / (e.length - 1);
|
|
3488
|
-
return e.map((e, i) => `${i * r},${n === 0 ? On / 2 : On - (e - t) / n * On}`).join(" ");
|
|
3489
|
-
}
|
|
3532
|
+
var On = 48, kn = 16;
|
|
3490
3533
|
function An(e) {
|
|
3534
|
+
if (!e || e.length < 2) return `0,${kn / 2} ${On},${kn / 2}`;
|
|
3535
|
+
let t = Math.min(...e), n = Math.max(...e) - t, r = On / (e.length - 1);
|
|
3536
|
+
return e.map((e, i) => `${i * r},${n === 0 ? kn / 2 : kn - (e - t) / n * kn}`).join(" ");
|
|
3537
|
+
}
|
|
3538
|
+
function jn(e) {
|
|
3491
3539
|
if (typeof e != "string") return "flat";
|
|
3492
3540
|
let t = e.trim();
|
|
3493
3541
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
3494
3542
|
}
|
|
3495
|
-
function
|
|
3496
|
-
|
|
3543
|
+
function Mn({ 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 }) {
|
|
3544
|
+
G("AppKpiTile", C);
|
|
3497
3545
|
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 ? {
|
|
3498
3546
|
...g,
|
|
3499
3547
|
"--wui-kpi-value-size": `${u}px`
|
|
3500
|
-
} : g, O = o ??
|
|
3548
|
+
} : g, O = o ?? jn(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
|
|
3501
3549
|
return p != null && (A = m ? {
|
|
3502
3550
|
as: m,
|
|
3503
3551
|
to: p
|
|
@@ -3535,12 +3583,12 @@ function jn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
3535
3583
|
}),
|
|
3536
3584
|
s && s.length > 0 && /* @__PURE__ */ E("svg", {
|
|
3537
3585
|
className: `kpi-sparkline${S ? ` ${S}` : ""}`,
|
|
3538
|
-
width:
|
|
3539
|
-
height:
|
|
3540
|
-
viewBox: `0 0 ${
|
|
3586
|
+
width: On,
|
|
3587
|
+
height: kn,
|
|
3588
|
+
viewBox: `0 0 ${On} ${kn}`,
|
|
3541
3589
|
"aria-hidden": "true",
|
|
3542
3590
|
children: /* @__PURE__ */ E("polyline", {
|
|
3543
|
-
points:
|
|
3591
|
+
points: An(s),
|
|
3544
3592
|
stroke: "currentColor",
|
|
3545
3593
|
fill: "none"
|
|
3546
3594
|
})
|
|
@@ -3550,11 +3598,11 @@ function jn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
3550
3598
|
}
|
|
3551
3599
|
//#endregion
|
|
3552
3600
|
//#region src/components/AppLink.jsx
|
|
3553
|
-
var
|
|
3601
|
+
var Nn = {
|
|
3554
3602
|
sm: 13,
|
|
3555
3603
|
md: 15,
|
|
3556
3604
|
lg: 18
|
|
3557
|
-
},
|
|
3605
|
+
}, Pn = [
|
|
3558
3606
|
"underline",
|
|
3559
3607
|
"underline-center",
|
|
3560
3608
|
"static",
|
|
@@ -3568,35 +3616,35 @@ var Mn = {
|
|
|
3568
3616
|
"shine",
|
|
3569
3617
|
"none"
|
|
3570
3618
|
];
|
|
3571
|
-
function
|
|
3619
|
+
function Fn(e, t, n) {
|
|
3572
3620
|
if (!e) return null;
|
|
3573
3621
|
let r = `wui-link__ic wui-link__ic--${t}`;
|
|
3574
3622
|
return typeof e == "string" ? /* @__PURE__ */ E("span", {
|
|
3575
3623
|
className: r,
|
|
3576
3624
|
children: /* @__PURE__ */ E(Y, {
|
|
3577
3625
|
name: e,
|
|
3578
|
-
size:
|
|
3626
|
+
size: Nn[n] ?? Nn.md
|
|
3579
3627
|
})
|
|
3580
3628
|
}) : /* @__PURE__ */ E("span", {
|
|
3581
3629
|
className: r,
|
|
3582
3630
|
children: e
|
|
3583
3631
|
});
|
|
3584
3632
|
}
|
|
3585
|
-
function
|
|
3586
|
-
|
|
3587
|
-
let f =
|
|
3633
|
+
function In({ 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 }) {
|
|
3634
|
+
G("AppLink", d), K("AppLink", "animation", r, Pn), K("AppLink", "size", o, Object.keys(Nn));
|
|
3635
|
+
let f = Pn.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
|
|
3588
3636
|
"wui-link",
|
|
3589
3637
|
`wui-link--${f}`,
|
|
3590
3638
|
o === "md" ? "" : `wui-link--${o}`,
|
|
3591
3639
|
c ? "is-disabled" : "",
|
|
3592
3640
|
u
|
|
3593
3641
|
].filter(Boolean).join(" "), h = /* @__PURE__ */ D(T, { children: [
|
|
3594
|
-
|
|
3642
|
+
Fn(i, "left", o),
|
|
3595
3643
|
/* @__PURE__ */ E("span", {
|
|
3596
3644
|
className: "wui-link__label",
|
|
3597
3645
|
children: e ?? t
|
|
3598
3646
|
}),
|
|
3599
|
-
|
|
3647
|
+
Fn(p, "right", o)
|
|
3600
3648
|
] });
|
|
3601
3649
|
return c ? /* @__PURE__ */ E("span", {
|
|
3602
3650
|
className: m,
|
|
@@ -3619,20 +3667,20 @@ function Fn({ children: e, label: t, href: n, animation: r = "underline", leftIc
|
|
|
3619
3667
|
}
|
|
3620
3668
|
//#endregion
|
|
3621
3669
|
//#region src/components/AppLogoPicker.jsx
|
|
3622
|
-
var
|
|
3670
|
+
var Ln = {
|
|
3623
3671
|
sm: 72,
|
|
3624
3672
|
md: 120,
|
|
3625
3673
|
lg: 160
|
|
3626
3674
|
};
|
|
3627
|
-
function
|
|
3628
|
-
|
|
3675
|
+
function Rn({ 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 }) {
|
|
3676
|
+
G("AppLogoPicker", k), K("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(Ln));
|
|
3629
3677
|
let j = d(null), M = s(), [N, P] = f(null), [F, I] = f(""), [R, z] = f(!1), [B, V] = f(!1);
|
|
3630
3678
|
o(() => () => N && URL.revokeObjectURL(N), [N]), o(() => {
|
|
3631
3679
|
P(null), z(!1);
|
|
3632
3680
|
}, [e]);
|
|
3633
|
-
let H = a || c,
|
|
3681
|
+
let H = a || c, U = N || (e && !R ? e : null), W = v || F, ee = _ && !W ? `${M}-hint` : void 0, te = W ? `${M}-error` : void 0, ne = !H && (!!N || !!U && !!i), re = () => {
|
|
3634
3682
|
H || j.current?.click();
|
|
3635
|
-
},
|
|
3683
|
+
}, ie = (e) => {
|
|
3636
3684
|
let t = L(e, {
|
|
3637
3685
|
accept: l,
|
|
3638
3686
|
maxSizeMb: u
|
|
@@ -3642,16 +3690,16 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3642
3690
|
return;
|
|
3643
3691
|
}
|
|
3644
3692
|
I(""), z(!1), P(URL.createObjectURL(e)), r(e);
|
|
3645
|
-
},
|
|
3693
|
+
}, ae = (e) => {
|
|
3646
3694
|
let t = e.target.files?.[0];
|
|
3647
|
-
e.target.value = "", t &&
|
|
3648
|
-
},
|
|
3695
|
+
e.target.value = "", t && ie(t);
|
|
3696
|
+
}, oe = (e) => {
|
|
3649
3697
|
if (e.preventDefault(), V(!1), H) return;
|
|
3650
3698
|
let t = e.dataTransfer.files?.[0];
|
|
3651
|
-
t &&
|
|
3652
|
-
},
|
|
3699
|
+
t && ie(t);
|
|
3700
|
+
}, se = () => {
|
|
3653
3701
|
P(null), I(""), z(!1), j.current && (j.current.value = ""), i?.();
|
|
3654
|
-
}, ce = typeof w == "number" ? w :
|
|
3702
|
+
}, ce = typeof w == "number" ? w : Ln[w] ?? Ln.md, le = Math.max(14, Math.round(ce * .18)), ue = Math.round(ce * .5), de = [
|
|
3655
3703
|
"set-uploader",
|
|
3656
3704
|
C === "avatar" ? "set-uploader--avatar" : "",
|
|
3657
3705
|
T === "rounded" ? "set-uploader--rounded" : T === "square" ? "set-uploader--square" : "",
|
|
@@ -3663,25 +3711,25 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3663
3711
|
/* @__PURE__ */ E("button", {
|
|
3664
3712
|
type: "button",
|
|
3665
3713
|
className: de,
|
|
3666
|
-
onClick:
|
|
3714
|
+
onClick: re,
|
|
3667
3715
|
disabled: H,
|
|
3668
3716
|
"aria-busy": a || void 0,
|
|
3669
3717
|
"aria-label": h,
|
|
3670
|
-
"aria-describedby":
|
|
3718
|
+
"aria-describedby": te || ee,
|
|
3671
3719
|
onDragOver: (e) => {
|
|
3672
3720
|
e.preventDefault(), !H && !B && V(!0);
|
|
3673
3721
|
},
|
|
3674
3722
|
onDragLeave: (e) => {
|
|
3675
3723
|
e.preventDefault(), V(!1);
|
|
3676
3724
|
},
|
|
3677
|
-
onDrop:
|
|
3725
|
+
onDrop: oe,
|
|
3678
3726
|
...k,
|
|
3679
3727
|
children: /* @__PURE__ */ D("span", {
|
|
3680
3728
|
className: "set-uploader-ring",
|
|
3681
3729
|
"data-overlay-label": m,
|
|
3682
|
-
children: [
|
|
3730
|
+
children: [U ? /* @__PURE__ */ E("img", {
|
|
3683
3731
|
className: "set-uploader-img",
|
|
3684
|
-
src:
|
|
3732
|
+
src: U,
|
|
3685
3733
|
alt: "",
|
|
3686
3734
|
onError: () => z(!0)
|
|
3687
3735
|
}) : /* @__PURE__ */ E("span", {
|
|
@@ -3710,14 +3758,14 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3710
3758
|
q(/* @__PURE__ */ E("button", {
|
|
3711
3759
|
type: "button",
|
|
3712
3760
|
className: "set-uploader-remove",
|
|
3713
|
-
hidden: !
|
|
3761
|
+
hidden: !ne,
|
|
3714
3762
|
"aria-label": "Remove photo",
|
|
3715
|
-
onClick:
|
|
3763
|
+
onClick: se,
|
|
3716
3764
|
children: /* @__PURE__ */ E(Y, {
|
|
3717
3765
|
name: "x",
|
|
3718
3766
|
size: 14
|
|
3719
3767
|
})
|
|
3720
|
-
}),
|
|
3768
|
+
}), ne ? "Remove photo" : null),
|
|
3721
3769
|
/* @__PURE__ */ E("input", {
|
|
3722
3770
|
id: M,
|
|
3723
3771
|
ref: j,
|
|
@@ -3725,18 +3773,18 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3725
3773
|
name: n,
|
|
3726
3774
|
hidden: !0,
|
|
3727
3775
|
accept: l,
|
|
3728
|
-
onChange:
|
|
3776
|
+
onChange: ae,
|
|
3729
3777
|
disabled: H
|
|
3730
3778
|
})
|
|
3731
3779
|
]
|
|
3732
|
-
}), he = _ && !
|
|
3780
|
+
}), he = _ && !W ? /* @__PURE__ */ E("div", {
|
|
3733
3781
|
className: "set-uploader-hint",
|
|
3734
|
-
id:
|
|
3782
|
+
id: ee,
|
|
3735
3783
|
children: _
|
|
3736
|
-
}) : null, J =
|
|
3784
|
+
}) : null, J = W ? /* @__PURE__ */ E("div", {
|
|
3737
3785
|
className: "field-error",
|
|
3738
|
-
id:
|
|
3739
|
-
children:
|
|
3786
|
+
id: te,
|
|
3787
|
+
children: W
|
|
3740
3788
|
}) : null, ge = g && /* @__PURE__ */ D("label", {
|
|
3741
3789
|
className: "label",
|
|
3742
3790
|
htmlFor: M,
|
|
@@ -3781,27 +3829,27 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
3781
3829
|
}
|
|
3782
3830
|
//#endregion
|
|
3783
3831
|
//#region src/components/AppMeter.jsx
|
|
3784
|
-
var
|
|
3832
|
+
var zn = [
|
|
3785
3833
|
"info",
|
|
3786
3834
|
"success",
|
|
3787
3835
|
"warning",
|
|
3788
3836
|
"danger",
|
|
3789
3837
|
"neutral"
|
|
3790
3838
|
];
|
|
3791
|
-
function
|
|
3839
|
+
function Bn(e, t, n) {
|
|
3792
3840
|
let r = n - t;
|
|
3793
3841
|
if (!(r > 0)) return 0;
|
|
3794
3842
|
let i = Math.min(100, Math.max(0, (e - t) / r * 100));
|
|
3795
3843
|
return Number(i.toFixed(2));
|
|
3796
3844
|
}
|
|
3797
|
-
function
|
|
3845
|
+
function Vn(e, t, n, r, i) {
|
|
3798
3846
|
if (t == null && n == null) return i;
|
|
3799
3847
|
let a = "mid";
|
|
3800
3848
|
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";
|
|
3801
3849
|
}
|
|
3802
|
-
function
|
|
3803
|
-
|
|
3804
|
-
let f =
|
|
3850
|
+
function Hn({ 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 }) {
|
|
3851
|
+
G("AppMeter", d);
|
|
3852
|
+
let f = Vn(e, a, o, i, zn.includes(r) ? r : "info"), p = Bn(e, t, n);
|
|
3805
3853
|
return /* @__PURE__ */ E("div", {
|
|
3806
3854
|
className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
|
|
3807
3855
|
role: "meter",
|
|
@@ -3819,8 +3867,8 @@ function Vn({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
|
|
|
3819
3867
|
}
|
|
3820
3868
|
//#endregion
|
|
3821
3869
|
//#region src/components/AppMultiSelect.jsx
|
|
3822
|
-
var
|
|
3823
|
-
|
|
3870
|
+
var Un = 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) {
|
|
3871
|
+
G("AppMultiSelect", T);
|
|
3824
3872
|
let k = s(), A = _ || k, { setRef: j, innerRef: M } = Q({
|
|
3825
3873
|
ref: O,
|
|
3826
3874
|
value: e,
|
|
@@ -3882,8 +3930,8 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3882
3930
|
}) : null
|
|
3883
3931
|
]
|
|
3884
3932
|
});
|
|
3885
|
-
}),
|
|
3886
|
-
|
|
3933
|
+
}), Wn = 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) {
|
|
3934
|
+
G("AppNumberInput", C);
|
|
3887
3935
|
let T = s(), O = _ || T, k = (e) => {
|
|
3888
3936
|
if (m === 0) return Math.round(e);
|
|
3889
3937
|
let t = 10 ** m;
|
|
@@ -3914,7 +3962,7 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3914
3962
|
N(t);
|
|
3915
3963
|
let n = j(t);
|
|
3916
3964
|
n !== null && l?.(n);
|
|
3917
|
-
},
|
|
3965
|
+
}, U = (e) => {
|
|
3918
3966
|
let t = j(e.target.value);
|
|
3919
3967
|
if (t === null) N(""), l?.("");
|
|
3920
3968
|
else {
|
|
@@ -3922,9 +3970,9 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3922
3970
|
N(String(e)), l?.(e);
|
|
3923
3971
|
}
|
|
3924
3972
|
C.onBlur?.(e);
|
|
3925
|
-
},
|
|
3973
|
+
}, W = (e) => {
|
|
3926
3974
|
e.key === "ArrowUp" ? (e.preventDefault(), P(1)) : e.key === "ArrowDown" && (e.preventDefault(), P(-1)), C.onKeyDown?.(e);
|
|
3927
|
-
},
|
|
3975
|
+
}, ee = /* @__PURE__ */ E(y.Control, {
|
|
3928
3976
|
...C,
|
|
3929
3977
|
id: O,
|
|
3930
3978
|
name: v,
|
|
@@ -3938,9 +3986,9 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3938
3986
|
value: M,
|
|
3939
3987
|
ref: w,
|
|
3940
3988
|
onChange: H,
|
|
3941
|
-
onBlur:
|
|
3942
|
-
onKeyDown:
|
|
3943
|
-
}),
|
|
3989
|
+
onBlur: U,
|
|
3990
|
+
onKeyDown: W
|
|
3991
|
+
}), te = /* @__PURE__ */ D("div", {
|
|
3944
3992
|
className: [
|
|
3945
3993
|
"num-wrap",
|
|
3946
3994
|
g === "sm" ? "num-wrap-sm" : "",
|
|
@@ -3959,7 +4007,7 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3959
4007
|
size: 16
|
|
3960
4008
|
})
|
|
3961
4009
|
}),
|
|
3962
|
-
|
|
4010
|
+
ee,
|
|
3963
4011
|
h && /* @__PURE__ */ E("span", {
|
|
3964
4012
|
className: "affix",
|
|
3965
4013
|
children: h
|
|
@@ -3993,7 +4041,7 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
3993
4041
|
})
|
|
3994
4042
|
]
|
|
3995
4043
|
}),
|
|
3996
|
-
|
|
4044
|
+
te,
|
|
3997
4045
|
n ? /* @__PURE__ */ E("div", {
|
|
3998
4046
|
className: "field-error",
|
|
3999
4047
|
id: R,
|
|
@@ -4005,8 +4053,8 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
4005
4053
|
}) : null
|
|
4006
4054
|
]
|
|
4007
4055
|
});
|
|
4008
|
-
}),
|
|
4009
|
-
|
|
4056
|
+
}), Gn = 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) {
|
|
4057
|
+
G("AppOtpInput", h);
|
|
4010
4058
|
let _ = s(), v = f || _, y = l ? `${v}-error` : void 0, b = c ? `${v}-hint` : void 0, x = y || b, { setRef: S } = Q({
|
|
4011
4059
|
ref: g,
|
|
4012
4060
|
value: e ?? "",
|
|
@@ -4050,8 +4098,8 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
4050
4098
|
});
|
|
4051
4099
|
//#endregion
|
|
4052
4100
|
//#region src/components/AppPageHeader.jsx
|
|
4053
|
-
function
|
|
4054
|
-
|
|
4101
|
+
function Kn({ 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 }) {
|
|
4102
|
+
G("AppPageHeader", p);
|
|
4055
4103
|
let m = [
|
|
4056
4104
|
"page-header",
|
|
4057
4105
|
c && c !== "md" ? `page-header-${c}` : "",
|
|
@@ -4109,8 +4157,8 @@ function Gn({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
|
|
|
4109
4157
|
}
|
|
4110
4158
|
//#endregion
|
|
4111
4159
|
//#region src/components/AppPagination.jsx
|
|
4112
|
-
function
|
|
4113
|
-
if (
|
|
4160
|
+
function qn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
|
|
4161
|
+
if (G("AppPagination", s), t <= 1) return null;
|
|
4114
4162
|
let c = Qt(e, t, { siblingCount: r });
|
|
4115
4163
|
return /* @__PURE__ */ E("nav", {
|
|
4116
4164
|
className: [
|
|
@@ -4169,8 +4217,8 @@ function Kn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
|
|
|
4169
4217
|
}
|
|
4170
4218
|
//#endregion
|
|
4171
4219
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
4172
|
-
var
|
|
4173
|
-
|
|
4220
|
+
var Jn = 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) {
|
|
4221
|
+
G("AppPhoneNumberInput", h);
|
|
4174
4222
|
let _ = s(), v = a || _, y = u && v ? `${v}-error` : void 0, { setRef: b } = Q({
|
|
4175
4223
|
ref: g,
|
|
4176
4224
|
value: e ?? "",
|
|
@@ -4210,8 +4258,8 @@ var qn = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
|
|
|
4210
4258
|
});
|
|
4211
4259
|
//#endregion
|
|
4212
4260
|
//#region src/components/AppPricingCard.jsx
|
|
4213
|
-
function
|
|
4214
|
-
return
|
|
4261
|
+
function Yn({ 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 }) {
|
|
4262
|
+
return G("AppPricingCard", u), /* @__PURE__ */ D("div", {
|
|
4215
4263
|
className: [
|
|
4216
4264
|
"plan-card",
|
|
4217
4265
|
o ? "featured" : "",
|
|
@@ -4264,21 +4312,21 @@ function Jn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
|
|
|
4264
4312
|
}
|
|
4265
4313
|
//#endregion
|
|
4266
4314
|
//#region src/components/AppProgress.jsx
|
|
4267
|
-
var
|
|
4315
|
+
var Xn = [
|
|
4268
4316
|
"info",
|
|
4269
4317
|
"success",
|
|
4270
4318
|
"warning",
|
|
4271
4319
|
"danger",
|
|
4272
4320
|
"neutral"
|
|
4273
4321
|
];
|
|
4274
|
-
function
|
|
4322
|
+
function Zn(e, t) {
|
|
4275
4323
|
if (!(t > 0)) return 0;
|
|
4276
4324
|
let n = Math.min(100, Math.max(0, e / t * 100));
|
|
4277
4325
|
return Number(n.toFixed(2));
|
|
4278
4326
|
}
|
|
4279
|
-
function
|
|
4280
|
-
|
|
4281
|
-
let d =
|
|
4327
|
+
function Qn({ 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 }) {
|
|
4328
|
+
G("AppProgress", u);
|
|
4329
|
+
let d = Xn.includes(n) ? n : "info", f = Zn(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
|
|
4282
4330
|
"progress-bar",
|
|
4283
4331
|
`wui-progress-${d}`,
|
|
4284
4332
|
o || s ? "progress-bar-striped" : "",
|
|
@@ -4302,8 +4350,8 @@ function Zn({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
|
|
|
4302
4350
|
}
|
|
4303
4351
|
//#endregion
|
|
4304
4352
|
//#region src/components/AppRadio.jsx
|
|
4305
|
-
var
|
|
4306
|
-
return
|
|
4353
|
+
var $n = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
4354
|
+
return G("AppRadio", o), /* @__PURE__ */ E(vt, {
|
|
4307
4355
|
ref: s,
|
|
4308
4356
|
label: e,
|
|
4309
4357
|
id: t,
|
|
@@ -4318,8 +4366,8 @@ var Qn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
4318
4366
|
});
|
|
4319
4367
|
//#endregion
|
|
4320
4368
|
//#region src/components/AppRepeater.jsx
|
|
4321
|
-
function
|
|
4322
|
-
|
|
4369
|
+
function er({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, addLabel: a = "Add another", addVariant: o = "secondary", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
|
|
4370
|
+
G("AppRepeater", p);
|
|
4323
4371
|
let m = typeof u == "number" && e.length >= u, h = !!i && e.length > l;
|
|
4324
4372
|
return /* @__PURE__ */ D("div", {
|
|
4325
4373
|
className: `repeater${f ? ` ${f}` : ""}`,
|
|
@@ -4370,8 +4418,8 @@ function $n({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
4370
4418
|
}
|
|
4371
4419
|
//#endregion
|
|
4372
4420
|
//#region src/components/AppResourceCard.jsx
|
|
4373
|
-
function
|
|
4374
|
-
|
|
4421
|
+
function tr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
|
|
4422
|
+
G("AppResourceCard", s);
|
|
4375
4423
|
let c = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
4376
4424
|
className: "res-card-icon",
|
|
4377
4425
|
children: /* @__PURE__ */ E(Y, {
|
|
@@ -4404,7 +4452,7 @@ function er({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
|
|
|
4404
4452
|
}
|
|
4405
4453
|
//#endregion
|
|
4406
4454
|
//#region src/components/AppResult.jsx
|
|
4407
|
-
var
|
|
4455
|
+
var nr = {
|
|
4408
4456
|
success: {
|
|
4409
4457
|
icon: "check-circle",
|
|
4410
4458
|
tone: "success"
|
|
@@ -4425,9 +4473,9 @@ var tr = {
|
|
|
4425
4473
|
404: { tone: "muted" },
|
|
4426
4474
|
500: { tone: "muted" }
|
|
4427
4475
|
};
|
|
4428
|
-
function
|
|
4429
|
-
|
|
4430
|
-
let c =
|
|
4476
|
+
function rr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
|
|
4477
|
+
G("AppResult", s), K("AppResult", "status", e, Object.keys(nr));
|
|
4478
|
+
let c = nr[e] || nr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
|
|
4431
4479
|
return /* @__PURE__ */ D("div", {
|
|
4432
4480
|
className: [
|
|
4433
4481
|
"result",
|
|
@@ -4465,8 +4513,8 @@ function nr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
|
|
|
4465
4513
|
}
|
|
4466
4514
|
//#endregion
|
|
4467
4515
|
//#region src/components/AppScrollbar.jsx
|
|
4468
|
-
function
|
|
4469
|
-
return
|
|
4516
|
+
function ir({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
4517
|
+
return G("AppScrollbar", i), /* @__PURE__ */ E("div", {
|
|
4470
4518
|
className: t ? `wui-scroll ${t}` : "wui-scroll",
|
|
4471
4519
|
style: n == null ? r : {
|
|
4472
4520
|
maxHeight: n,
|
|
@@ -4478,8 +4526,8 @@ function rr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
|
4478
4526
|
}
|
|
4479
4527
|
//#endregion
|
|
4480
4528
|
//#region src/components/AppSearch.jsx
|
|
4481
|
-
function
|
|
4482
|
-
|
|
4529
|
+
function ar({ 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 }) {
|
|
4530
|
+
G("AppSearch", u);
|
|
4483
4531
|
let d = t || n;
|
|
4484
4532
|
return /* @__PURE__ */ D("div", {
|
|
4485
4533
|
className: [
|
|
@@ -4525,17 +4573,17 @@ function ir({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
|
|
|
4525
4573
|
}
|
|
4526
4574
|
//#endregion
|
|
4527
4575
|
//#region src/components/AppSegmented.jsx
|
|
4528
|
-
var
|
|
4576
|
+
var or = {
|
|
4529
4577
|
sm: "segmented-sm",
|
|
4530
4578
|
md: "",
|
|
4531
4579
|
lg: "segmented-lg",
|
|
4532
4580
|
xl: "wui-segmented-xl"
|
|
4533
4581
|
};
|
|
4534
|
-
function
|
|
4535
|
-
|
|
4582
|
+
function sr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: c = !1, bordered: u = !0, disabled: f = !1, className: p = "", ...m }) {
|
|
4583
|
+
G("AppSegmented", m), K("AppSegmented", "size", a, Object.keys(or));
|
|
4536
4584
|
let h = s(), g = i || h, _ = d(null), v = d(null), y = [
|
|
4537
4585
|
"segmented",
|
|
4538
|
-
|
|
4586
|
+
or[a] ?? "",
|
|
4539
4587
|
c ? "segmented-full" : "",
|
|
4540
4588
|
u ? "" : "wui-segmented-borderless",
|
|
4541
4589
|
f ? "is-disabled" : "",
|
|
@@ -4606,8 +4654,8 @@ function or({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
|
|
|
4606
4654
|
}
|
|
4607
4655
|
//#endregion
|
|
4608
4656
|
//#region src/components/AppSelect.jsx
|
|
4609
|
-
var
|
|
4610
|
-
|
|
4657
|
+
var cr = (e) => e == null ? "" : e.label ?? e.text ?? "", lr = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, prefix: d, suffix: f, floatingLabel: p = !1, disabled: m, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": O, "aria-describedby": k, ...A }, j) {
|
|
4658
|
+
G("AppSelect", A);
|
|
4611
4659
|
let M = s(), { setRef: N, innerRef: P } = Q({
|
|
4612
4660
|
ref: j,
|
|
4613
4661
|
value: e ?? "",
|
|
@@ -4618,7 +4666,7 @@ var sr = (e) => e == null ? "" : e.label ?? e.text ?? "", cr = i(function({ valu
|
|
|
4618
4666
|
if (!e) return;
|
|
4619
4667
|
let t = n.map((e) => ({
|
|
4620
4668
|
value: e.value,
|
|
4621
|
-
label:
|
|
4669
|
+
label: cr(e),
|
|
4622
4670
|
icon: e.icon
|
|
4623
4671
|
}));
|
|
4624
4672
|
Ze(t, e.options) || (e.options = t);
|
|
@@ -4692,8 +4740,8 @@ var sr = (e) => e == null ? "" : e.label ?? e.text ?? "", cr = i(function({ valu
|
|
|
4692
4740
|
});
|
|
4693
4741
|
//#endregion
|
|
4694
4742
|
//#region src/components/AppShell.jsx
|
|
4695
|
-
function
|
|
4696
|
-
|
|
4743
|
+
function ur({ 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 = "", ..._ }) {
|
|
4744
|
+
G("AppShell", _);
|
|
4697
4745
|
let [v, y] = f(!1), [b, x] = f(!1), [S, C] = f(!1), w = u ?? v, T = () => {
|
|
4698
4746
|
let e = !w;
|
|
4699
4747
|
u === void 0 && y(e), d?.(e);
|
|
@@ -4740,7 +4788,7 @@ function lr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
4740
4788
|
children: [e.label && /* @__PURE__ */ E("div", {
|
|
4741
4789
|
className: "app-nav-group-label",
|
|
4742
4790
|
children: e.label
|
|
4743
|
-
}), e.items.map((e) => /* @__PURE__ */ E(
|
|
4791
|
+
}), e.items.map((e) => /* @__PURE__ */ E(dr, {
|
|
4744
4792
|
item: e,
|
|
4745
4793
|
linkComponent: h,
|
|
4746
4794
|
onNavigate: () => x(!1)
|
|
@@ -4807,7 +4855,7 @@ function lr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
4807
4855
|
]
|
|
4808
4856
|
});
|
|
4809
4857
|
}
|
|
4810
|
-
function
|
|
4858
|
+
function dr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
4811
4859
|
let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = f(a);
|
|
4812
4860
|
o(() => {
|
|
4813
4861
|
a && !s && c(!0);
|
|
@@ -4849,7 +4897,7 @@ function ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
4849
4897
|
"aria-hidden": !s || void 0,
|
|
4850
4898
|
children: /* @__PURE__ */ E("div", {
|
|
4851
4899
|
className: "app-nav-sub-inner",
|
|
4852
|
-
children: e.children.map((e) => /* @__PURE__ */ E(
|
|
4900
|
+
children: e.children.map((e) => /* @__PURE__ */ E(dr, {
|
|
4853
4901
|
item: e,
|
|
4854
4902
|
linkComponent: t,
|
|
4855
4903
|
onNavigate: n,
|
|
@@ -4890,7 +4938,7 @@ function ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
4890
4938
|
}
|
|
4891
4939
|
//#endregion
|
|
4892
4940
|
//#region src/components/AppSidebarMenu.jsx
|
|
4893
|
-
var
|
|
4941
|
+
var fr = {
|
|
4894
4942
|
left: "start",
|
|
4895
4943
|
right: "end",
|
|
4896
4944
|
start: "start",
|
|
@@ -4898,9 +4946,9 @@ var dr = {
|
|
|
4898
4946
|
top: "top",
|
|
4899
4947
|
bottom: "bottom"
|
|
4900
4948
|
};
|
|
4901
|
-
function
|
|
4902
|
-
|
|
4903
|
-
let { style: y, ...b } = v, S =
|
|
4949
|
+
function pr({ 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 }) {
|
|
4950
|
+
G("AppSidebarMenu", v), K("AppSidebarMenu", "side", n, Object.keys(fr));
|
|
4951
|
+
let { style: y, ...b } = v, S = fr[n] || "end", C = c || l || y ? {
|
|
4904
4952
|
...c && { "--asm-width": c },
|
|
4905
4953
|
...l && { "--asm-max-width": l },
|
|
4906
4954
|
...y
|
|
@@ -4961,8 +5009,8 @@ function fr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
4961
5009
|
}
|
|
4962
5010
|
//#endregion
|
|
4963
5011
|
//#region src/components/AppSlider.jsx
|
|
4964
|
-
var
|
|
4965
|
-
|
|
5012
|
+
var mr = 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) {
|
|
5013
|
+
G("AppSlider", T);
|
|
4966
5014
|
let k = s(), A = x || k, j = r, { setRef: M, innerRef: N } = Q({
|
|
4967
5015
|
ref: O,
|
|
4968
5016
|
value: j ? void 0 : e,
|
|
@@ -5022,14 +5070,14 @@ var pr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
|
|
|
5022
5070
|
})
|
|
5023
5071
|
]
|
|
5024
5072
|
});
|
|
5025
|
-
}),
|
|
5073
|
+
}), hr = {
|
|
5026
5074
|
sm: 44,
|
|
5027
5075
|
md: 56,
|
|
5028
5076
|
lg: 72
|
|
5029
5077
|
};
|
|
5030
|
-
function
|
|
5031
|
-
|
|
5032
|
-
let { style: l, ...u } = c, d = typeof a == "number" ? a :
|
|
5078
|
+
function gr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
|
|
5079
|
+
G("AppSplash", c), K("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(hr));
|
|
5080
|
+
let { style: l, ...u } = c, d = typeof a == "number" ? a : hr[a] ?? hr.md, f = i === "ring" ? /* @__PURE__ */ E("span", {
|
|
5033
5081
|
className: "splash-ring",
|
|
5034
5082
|
"aria-hidden": "true"
|
|
5035
5083
|
}) : i === "dots" ? /* @__PURE__ */ D("span", {
|
|
@@ -5076,8 +5124,8 @@ function hr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
|
|
|
5076
5124
|
}
|
|
5077
5125
|
//#endregion
|
|
5078
5126
|
//#region src/components/AppStatusBadge.jsx
|
|
5079
|
-
function
|
|
5080
|
-
return
|
|
5127
|
+
function _r({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
|
|
5128
|
+
return G("AppStatusBadge", a), e == null || e === "" ? "-" : q(/* @__PURE__ */ E("span", {
|
|
5081
5129
|
className: `status-label ${t}${n ? ` ${n}` : ""}`,
|
|
5082
5130
|
...a,
|
|
5083
5131
|
children: e
|
|
@@ -5085,8 +5133,8 @@ function gr({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
|
|
|
5085
5133
|
}
|
|
5086
5134
|
//#endregion
|
|
5087
5135
|
//#region src/components/AppStepper.jsx
|
|
5088
|
-
function
|
|
5089
|
-
|
|
5136
|
+
function vr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
5137
|
+
G("AppStepper", c);
|
|
5090
5138
|
let l = t === "journey";
|
|
5091
5139
|
return /* @__PURE__ */ E("nav", {
|
|
5092
5140
|
className: [
|
|
@@ -5098,7 +5146,7 @@ function _r({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
5098
5146
|
"aria-label": a,
|
|
5099
5147
|
...c,
|
|
5100
5148
|
children: e.map((t, n) => {
|
|
5101
|
-
let a = t.status ||
|
|
5149
|
+
let a = t.status || yr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
|
|
5102
5150
|
c = a === "done" ? /* @__PURE__ */ E(Y, {
|
|
5103
5151
|
name: "check",
|
|
5104
5152
|
size: 14
|
|
@@ -5162,13 +5210,13 @@ function _r({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
5162
5210
|
})
|
|
5163
5211
|
});
|
|
5164
5212
|
}
|
|
5165
|
-
function
|
|
5213
|
+
function yr(e, t) {
|
|
5166
5214
|
return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
|
|
5167
5215
|
}
|
|
5168
5216
|
//#endregion
|
|
5169
5217
|
//#region src/components/AppSwitch.jsx
|
|
5170
|
-
var
|
|
5171
|
-
return
|
|
5218
|
+
var br = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
|
|
5219
|
+
return G("AppSwitch", s), /* @__PURE__ */ E(vt, {
|
|
5172
5220
|
ref: c,
|
|
5173
5221
|
label: e,
|
|
5174
5222
|
id: t,
|
|
@@ -5183,8 +5231,8 @@ var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "r
|
|
|
5183
5231
|
});
|
|
5184
5232
|
//#endregion
|
|
5185
5233
|
//#region src/components/AppTableEmptyState.jsx
|
|
5186
|
-
function
|
|
5187
|
-
return
|
|
5234
|
+
function xr({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
5235
|
+
return G("AppTableEmptyState", i), /* @__PURE__ */ D("div", {
|
|
5188
5236
|
className: "tbl-empty",
|
|
5189
5237
|
...i,
|
|
5190
5238
|
children: [
|
|
@@ -5208,10 +5256,48 @@ function br({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
|
5208
5256
|
});
|
|
5209
5257
|
}
|
|
5210
5258
|
//#endregion
|
|
5259
|
+
//#region src/components/AppTableToolbar.jsx
|
|
5260
|
+
function Sr({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onClearSelection: i, className: a = "", ...o }) {
|
|
5261
|
+
G("AppTableToolbar", o);
|
|
5262
|
+
let s = n > 0;
|
|
5263
|
+
return /* @__PURE__ */ D("div", {
|
|
5264
|
+
className: `wui-table-toolbar${a ? ` ${a}` : ""}`,
|
|
5265
|
+
...o,
|
|
5266
|
+
children: [/* @__PURE__ */ D("div", {
|
|
5267
|
+
className: "wui-table-toolbar-main",
|
|
5268
|
+
hidden: s,
|
|
5269
|
+
children: [/* @__PURE__ */ E("div", {
|
|
5270
|
+
className: "wui-table-toolbar-filters",
|
|
5271
|
+
children: e
|
|
5272
|
+
}), /* @__PURE__ */ E("div", {
|
|
5273
|
+
className: "wui-table-toolbar-actions",
|
|
5274
|
+
children: t
|
|
5275
|
+
})]
|
|
5276
|
+
}), /* @__PURE__ */ D("div", {
|
|
5277
|
+
className: "wui-table-toolbar-bulk",
|
|
5278
|
+
hidden: !s,
|
|
5279
|
+
children: [
|
|
5280
|
+
/* @__PURE__ */ D("span", {
|
|
5281
|
+
className: "wui-table-toolbar-count",
|
|
5282
|
+
"aria-live": "polite",
|
|
5283
|
+
children: [n, " selected"]
|
|
5284
|
+
}),
|
|
5285
|
+
r,
|
|
5286
|
+
i && /* @__PURE__ */ E("button", {
|
|
5287
|
+
type: "button",
|
|
5288
|
+
className: "btn btn-ghost btn-sm wui-table-toolbar-clear",
|
|
5289
|
+
onClick: i,
|
|
5290
|
+
children: "Clear"
|
|
5291
|
+
})
|
|
5292
|
+
]
|
|
5293
|
+
})]
|
|
5294
|
+
});
|
|
5295
|
+
}
|
|
5296
|
+
//#endregion
|
|
5211
5297
|
//#region src/components/AppTabs.jsx
|
|
5212
|
-
var
|
|
5213
|
-
function
|
|
5214
|
-
|
|
5298
|
+
var Cr = 1, wr = 28, Tr = .7;
|
|
5299
|
+
function Er({ 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, ..._ }) {
|
|
5300
|
+
G("AppTabs", _);
|
|
5215
5301
|
let v = d(null), y = d(null), b = s === "vertical", [x, S] = f(t);
|
|
5216
5302
|
o(() => {
|
|
5217
5303
|
S(t);
|
|
@@ -5222,7 +5308,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5222
5308
|
let e = v.current, t = y.current;
|
|
5223
5309
|
if (!e || !t || b) return;
|
|
5224
5310
|
let n = e.scrollWidth - e.clientWidth;
|
|
5225
|
-
t.classList.toggle("is-overflow-start", e.scrollLeft >
|
|
5311
|
+
t.classList.toggle("is-overflow-start", e.scrollLeft > Cr), t.classList.toggle("is-overflow-end", n > Cr && e.scrollLeft < n - Cr);
|
|
5226
5312
|
}, [b]), M = a(() => {
|
|
5227
5313
|
let n = v.current;
|
|
5228
5314
|
if (!n) return;
|
|
@@ -5238,7 +5324,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5238
5324
|
if (!e || b) return;
|
|
5239
5325
|
let t = e.querySelector(".app-tab.active");
|
|
5240
5326
|
if (!t) return;
|
|
5241
|
-
let n =
|
|
5327
|
+
let n = wr, r = t.offsetLeft, i = r + t.offsetWidth;
|
|
5242
5328
|
r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
|
|
5243
5329
|
}, [b]);
|
|
5244
5330
|
l(() => {
|
|
@@ -5273,7 +5359,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5273
5359
|
}
|
|
5274
5360
|
let I = (e) => {
|
|
5275
5361
|
let t = v.current;
|
|
5276
|
-
t && t.scrollBy({ left: e * t.clientWidth *
|
|
5362
|
+
t && t.scrollBy({ left: e * t.clientWidth * Tr });
|
|
5277
5363
|
}, L = [
|
|
5278
5364
|
"app-tabs",
|
|
5279
5365
|
i === "pills" ? "app-tabs-pills" : "",
|
|
@@ -5386,8 +5472,8 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
5386
5472
|
}
|
|
5387
5473
|
//#endregion
|
|
5388
5474
|
//#region src/components/AppTagInput.jsx
|
|
5389
|
-
var
|
|
5390
|
-
|
|
5475
|
+
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) {
|
|
5476
|
+
G("AppTagInput", y);
|
|
5391
5477
|
let x = s(), S = p || x, { setRef: C } = Q({
|
|
5392
5478
|
ref: b,
|
|
5393
5479
|
value: e,
|
|
@@ -5437,8 +5523,8 @@ var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5437
5523
|
}) : null
|
|
5438
5524
|
]
|
|
5439
5525
|
});
|
|
5440
|
-
}),
|
|
5441
|
-
|
|
5526
|
+
}), Or = 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) {
|
|
5527
|
+
G("AppTextarea", x);
|
|
5442
5528
|
let C = s(), w = u || C, T = [
|
|
5443
5529
|
"textarea",
|
|
5444
5530
|
h ? "autosize" : "",
|
|
@@ -5508,7 +5594,7 @@ var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5508
5594
|
})
|
|
5509
5595
|
]
|
|
5510
5596
|
});
|
|
5511
|
-
}),
|
|
5597
|
+
}), kr = {
|
|
5512
5598
|
done: "check",
|
|
5513
5599
|
current: "clock",
|
|
5514
5600
|
"on-hold": "lock",
|
|
@@ -5517,8 +5603,8 @@ var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
5517
5603
|
skipped: "arrow-right",
|
|
5518
5604
|
upcoming: null
|
|
5519
5605
|
};
|
|
5520
|
-
function
|
|
5521
|
-
|
|
5606
|
+
function Ar({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
|
|
5607
|
+
G("AppTimeline", o);
|
|
5522
5608
|
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;
|
|
5523
5609
|
return /* @__PURE__ */ E("ol", {
|
|
5524
5610
|
className: c,
|
|
@@ -5528,7 +5614,7 @@ function Or({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
5528
5614
|
} : a,
|
|
5529
5615
|
...o,
|
|
5530
5616
|
children: e.map((e, t) => {
|
|
5531
|
-
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ?
|
|
5617
|
+
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? kr[n] : void 0) : e.icon || "circle";
|
|
5532
5618
|
return /* @__PURE__ */ D("li", {
|
|
5533
5619
|
className: `timeline-item${r}${i}`,
|
|
5534
5620
|
children: [/* @__PURE__ */ E("span", {
|
|
@@ -5598,8 +5684,8 @@ function Or({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
5598
5684
|
}
|
|
5599
5685
|
//#endregion
|
|
5600
5686
|
//#region src/components/AppTimePicker.jsx
|
|
5601
|
-
var
|
|
5602
|
-
|
|
5687
|
+
var jr = 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) {
|
|
5688
|
+
G("AppTimePicker", y);
|
|
5603
5689
|
let x = s(), S = h || o || x, { setRef: C } = Q({
|
|
5604
5690
|
ref: b,
|
|
5605
5691
|
value: e ?? "",
|
|
@@ -5643,35 +5729,35 @@ var kr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
5643
5729
|
})
|
|
5644
5730
|
]
|
|
5645
5731
|
});
|
|
5646
|
-
}),
|
|
5647
|
-
function
|
|
5648
|
-
for (let e of
|
|
5732
|
+
}), Mr = 6, $ = [], Nr = /* @__PURE__ */ new Set(), Pr = /* @__PURE__ */ new Map(), Fr = /* @__PURE__ */ new Set(), Ir = 0;
|
|
5733
|
+
function Lr() {
|
|
5734
|
+
for (let e of Nr) e($);
|
|
5649
5735
|
}
|
|
5650
|
-
function
|
|
5651
|
-
let t =
|
|
5652
|
-
t !== void 0 && (clearTimeout(t),
|
|
5736
|
+
function Rr(e) {
|
|
5737
|
+
let t = Pr.get(e);
|
|
5738
|
+
t !== void 0 && (clearTimeout(t), Pr.delete(e));
|
|
5653
5739
|
}
|
|
5654
|
-
function
|
|
5655
|
-
if (e.length <=
|
|
5740
|
+
function zr(e, t) {
|
|
5741
|
+
if (e.length <= Mr) return e;
|
|
5656
5742
|
let n = [...e], r = [];
|
|
5657
|
-
for (; n.length >
|
|
5743
|
+
for (; n.length > Mr;) {
|
|
5658
5744
|
let e = n.findIndex((e) => e.id !== t && e.duration !== 0);
|
|
5659
5745
|
r.push(n.splice(e === -1 ? n.findIndex((e) => e.id !== t) : e, 1)[0]);
|
|
5660
5746
|
}
|
|
5661
|
-
for (let e of r)
|
|
5747
|
+
for (let e of r) Rr(e.id), Fr.delete(e.id);
|
|
5662
5748
|
return n;
|
|
5663
5749
|
}
|
|
5664
|
-
function
|
|
5665
|
-
return
|
|
5666
|
-
if (
|
|
5750
|
+
function Br(e) {
|
|
5751
|
+
return Nr.add(e), e($), () => {
|
|
5752
|
+
if (Nr.delete(e), Nr.size === 0) for (let e of $) e.duration > 0 && !Pr.has(e.id) && (Fr.delete(e.id), Pr.set(e.id, setTimeout(() => Ur(e.id), e.duration)));
|
|
5667
5753
|
};
|
|
5668
5754
|
}
|
|
5669
|
-
function
|
|
5755
|
+
function Vr(e, t, n = {}) {
|
|
5670
5756
|
let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
|
|
5671
5757
|
if (r) {
|
|
5672
5758
|
let i = $.find((e) => e.externalId === r);
|
|
5673
5759
|
if (i) {
|
|
5674
|
-
|
|
5760
|
+
Rr(i.id);
|
|
5675
5761
|
let r = n.duration === void 0 ? 5e3 : n.duration;
|
|
5676
5762
|
$ = $.map((a) => a.id === i.id ? {
|
|
5677
5763
|
...a,
|
|
@@ -5684,12 +5770,12 @@ function zr(e, t, n = {}) {
|
|
|
5684
5770
|
shape: n.shape,
|
|
5685
5771
|
surface: n.surface,
|
|
5686
5772
|
progress: n.progress
|
|
5687
|
-
} : a),
|
|
5773
|
+
} : a), Lr(), r > 0 && !Fr.has(i.id) && Pr.set(i.id, setTimeout(() => Ur(i.id), r));
|
|
5688
5774
|
return;
|
|
5689
5775
|
}
|
|
5690
5776
|
} else if (i && $.some((e) => e.key === i)) return;
|
|
5691
|
-
let a = ++
|
|
5692
|
-
$ =
|
|
5777
|
+
let a = ++Ir, o = n.duration === void 0 ? 5e3 : n.duration;
|
|
5778
|
+
$ = zr([...$, {
|
|
5693
5779
|
id: a,
|
|
5694
5780
|
externalId: r,
|
|
5695
5781
|
message: e,
|
|
@@ -5702,25 +5788,25 @@ function zr(e, t, n = {}) {
|
|
|
5702
5788
|
surface: n.surface,
|
|
5703
5789
|
progress: n.progress,
|
|
5704
5790
|
key: i
|
|
5705
|
-
}], a),
|
|
5791
|
+
}], a), Lr(), o > 0 && Pr.set(a, setTimeout(() => Ur(a), o));
|
|
5706
5792
|
}
|
|
5707
|
-
function
|
|
5708
|
-
|
|
5793
|
+
function Hr(e) {
|
|
5794
|
+
Rr(e), Fr.add(e);
|
|
5709
5795
|
}
|
|
5710
|
-
function
|
|
5711
|
-
|
|
5796
|
+
function Ur(e) {
|
|
5797
|
+
Rr(e), Fr.delete(e);
|
|
5712
5798
|
let t = $.filter((t) => t.id !== e);
|
|
5713
|
-
t.length !== $.length && ($ = t,
|
|
5799
|
+
t.length !== $.length && ($ = t, Lr());
|
|
5714
5800
|
}
|
|
5715
|
-
function
|
|
5716
|
-
if (!($.length === 0 &&
|
|
5717
|
-
for (let e of
|
|
5718
|
-
|
|
5801
|
+
function Wr() {
|
|
5802
|
+
if (!($.length === 0 && Pr.size === 0 && Fr.size === 0)) {
|
|
5803
|
+
for (let e of Pr.values()) clearTimeout(e);
|
|
5804
|
+
Pr.clear(), Fr.clear(), $.length !== 0 && ($ = [], Lr());
|
|
5719
5805
|
}
|
|
5720
5806
|
}
|
|
5721
5807
|
//#endregion
|
|
5722
5808
|
//#region src/components/AppToast.jsx
|
|
5723
|
-
var
|
|
5809
|
+
var Gr = {
|
|
5724
5810
|
success: {
|
|
5725
5811
|
icon: "check-circle",
|
|
5726
5812
|
assertive: !1
|
|
@@ -5737,7 +5823,7 @@ var Ur = {
|
|
|
5737
5823
|
icon: "alert-circle",
|
|
5738
5824
|
assertive: !0
|
|
5739
5825
|
}
|
|
5740
|
-
},
|
|
5826
|
+
}, Kr = {
|
|
5741
5827
|
"top-start": "top-0 start-0",
|
|
5742
5828
|
"top-center": "top-0 start-50 translate-middle-x",
|
|
5743
5829
|
"top-end": "top-0 end-0",
|
|
@@ -5745,21 +5831,21 @@ var Ur = {
|
|
|
5745
5831
|
"bottom-start": "bottom-0 start-0",
|
|
5746
5832
|
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
5747
5833
|
"bottom-end": "bottom-0 end-0"
|
|
5748
|
-
},
|
|
5834
|
+
}, qr = 64, Jr = /* @__PURE__ */ new Set([
|
|
5749
5835
|
"rise",
|
|
5750
5836
|
"organic",
|
|
5751
5837
|
"jelly",
|
|
5752
5838
|
"spring"
|
|
5753
|
-
]),
|
|
5839
|
+
]), Yr = /* @__PURE__ */ new Set([
|
|
5754
5840
|
"rounded",
|
|
5755
5841
|
"pill",
|
|
5756
5842
|
"sharp"
|
|
5757
|
-
]),
|
|
5758
|
-
function
|
|
5759
|
-
|
|
5843
|
+
]), Xr = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
5844
|
+
function Zr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
|
|
5845
|
+
G("AppToast", s), K("AppToast", "position", e, Object.keys(Kr)), K("AppToast", "animation", n, Jr), K("AppToast", "shape", r, Yr), K("AppToast", "surface", i, Xr);
|
|
5760
5846
|
let [c, l] = f([]);
|
|
5761
|
-
o(() =>
|
|
5762
|
-
let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p =
|
|
5847
|
+
o(() => Br(l), []);
|
|
5848
|
+
let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p = Kr[e] ?? Kr["bottom-end"];
|
|
5763
5849
|
return /* @__PURE__ */ D("div", {
|
|
5764
5850
|
...s,
|
|
5765
5851
|
className: `wui-toast-container toast-container position-fixed ${p} p-3 ${a}`.trim(),
|
|
@@ -5771,7 +5857,7 @@ function Yr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
5771
5857
|
u,
|
|
5772
5858
|
" more"
|
|
5773
5859
|
]
|
|
5774
|
-
}), d.map((e) => /* @__PURE__ */ E(
|
|
5860
|
+
}), d.map((e) => /* @__PURE__ */ E(Qr, {
|
|
5775
5861
|
toast: e,
|
|
5776
5862
|
defaultAnimation: n,
|
|
5777
5863
|
defaultShape: r,
|
|
@@ -5779,14 +5865,14 @@ function Yr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
5779
5865
|
}, e.id))]
|
|
5780
5866
|
});
|
|
5781
5867
|
}
|
|
5782
|
-
function
|
|
5783
|
-
let i =
|
|
5868
|
+
function Qr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
|
|
5869
|
+
let i = Gr[e.variant] ?? Gr.success, a = Jr.has(e.animation) ? e.animation : t, s = Yr.has(e.shape) ? e.shape : n, c = Xr.has(e.surface) ? e.surface : r, l = (a !== "rise" && Jr.has(a) ? ` wui-toast--anim-${a}` : "") + (s !== "rounded" && Yr.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 = () => Ur(e.id), y = d(null);
|
|
5784
5870
|
o(() => {
|
|
5785
5871
|
if (e.duration === 0) return;
|
|
5786
|
-
|
|
5872
|
+
Hr(e.id);
|
|
5787
5873
|
let t = y.current, n = t == null ? "" : getComputedStyle(t).animationName;
|
|
5788
5874
|
if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
|
|
5789
|
-
let r = setTimeout(() =>
|
|
5875
|
+
let r = setTimeout(() => Ur(e.id), e.duration);
|
|
5790
5876
|
return () => clearTimeout(r);
|
|
5791
5877
|
}, [e.id, e.duration]);
|
|
5792
5878
|
let b = (e) => {
|
|
@@ -5798,7 +5884,7 @@ function Xr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
5798
5884
|
}, C = (e) => {
|
|
5799
5885
|
if (_.current === null) return;
|
|
5800
5886
|
let t = e.clientX - _.current;
|
|
5801
|
-
if (Math.abs(t) >
|
|
5887
|
+
if (Math.abs(t) > qr) {
|
|
5802
5888
|
v();
|
|
5803
5889
|
return;
|
|
5804
5890
|
}
|
|
@@ -5882,8 +5968,8 @@ function Xr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
5882
5968
|
}
|
|
5883
5969
|
//#endregion
|
|
5884
5970
|
//#region src/components/AppToolbar.jsx
|
|
5885
|
-
function
|
|
5886
|
-
|
|
5971
|
+
function $r({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
|
|
5972
|
+
G("AppToolbar", u);
|
|
5887
5973
|
let d = s(), p = o || d, [m, h] = f(r), g = n === void 0 ? m : n;
|
|
5888
5974
|
return /* @__PURE__ */ D("div", {
|
|
5889
5975
|
className: [
|
|
@@ -5940,8 +6026,8 @@ function Zr({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
|
|
|
5940
6026
|
}
|
|
5941
6027
|
//#endregion
|
|
5942
6028
|
//#region src/components/AppWizard.jsx
|
|
5943
|
-
var
|
|
5944
|
-
|
|
6029
|
+
var ei = 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) {
|
|
6030
|
+
G("AppWizard", T);
|
|
5945
6031
|
let O = d(null), k = (e) => {
|
|
5946
6032
|
O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
|
|
5947
6033
|
}, A = e.toArray(n), j = [p && `wui-step-tone-${p}`, w].filter(Boolean).join(" ");
|
|
@@ -5992,15 +6078,15 @@ var Qr = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
|
|
|
5992
6078
|
children: A[t]
|
|
5993
6079
|
}, e.key ?? `${e.label}-${t}`))
|
|
5994
6080
|
});
|
|
5995
|
-
}),
|
|
6081
|
+
}), ti = /* @__PURE__ */ new Set([
|
|
5996
6082
|
"ArrowUp",
|
|
5997
6083
|
"ArrowDown",
|
|
5998
6084
|
"ArrowLeft",
|
|
5999
6085
|
"ArrowRight"
|
|
6000
6086
|
]);
|
|
6001
|
-
function
|
|
6087
|
+
function ni({ 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, ..._ }) {
|
|
6002
6088
|
let { onToggle: y, ...b } = _;
|
|
6003
|
-
|
|
6089
|
+
G("AppWorkspaceSwitcher", b);
|
|
6004
6090
|
let [x, S] = f(""), [C, w] = f(!1), T = d(null), O = (e, t) => {
|
|
6005
6091
|
w(e), y?.(e, t);
|
|
6006
6092
|
}, k = e.find((e) => e.id === t) ?? e[0], A = u(() => {
|
|
@@ -6018,7 +6104,7 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6018
6104
|
let e = T.current;
|
|
6019
6105
|
if (!e) return;
|
|
6020
6106
|
let t = (e) => {
|
|
6021
|
-
if (
|
|
6107
|
+
if (ti.has(e.key)) {
|
|
6022
6108
|
e.stopPropagation();
|
|
6023
6109
|
return;
|
|
6024
6110
|
}
|
|
@@ -6036,7 +6122,7 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6036
6122
|
onToggle: O,
|
|
6037
6123
|
...b,
|
|
6038
6124
|
children: [/* @__PURE__ */ E(v.Toggle, {
|
|
6039
|
-
as:
|
|
6125
|
+
as: oi,
|
|
6040
6126
|
compact: m,
|
|
6041
6127
|
tenant: k,
|
|
6042
6128
|
"aria-label": M
|
|
@@ -6071,7 +6157,7 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6071
6157
|
className: `workspace-switcher-option${e.id === k?.id ? " is-active" : ""}`,
|
|
6072
6158
|
onClick: () => n?.(e),
|
|
6073
6159
|
children: [
|
|
6074
|
-
/* @__PURE__ */ E(
|
|
6160
|
+
/* @__PURE__ */ E(ii, { tenant: e }),
|
|
6075
6161
|
/* @__PURE__ */ E("span", {
|
|
6076
6162
|
className: "workspace-switcher-option-name",
|
|
6077
6163
|
children: e.name
|
|
@@ -6103,17 +6189,17 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
6103
6189
|
}) : null,
|
|
6104
6190
|
i ? /* @__PURE__ */ E("div", {
|
|
6105
6191
|
className: "workspace-switcher-footer",
|
|
6106
|
-
children:
|
|
6192
|
+
children: ai(i, a)
|
|
6107
6193
|
}) : null
|
|
6108
6194
|
]
|
|
6109
6195
|
})]
|
|
6110
6196
|
});
|
|
6111
6197
|
}
|
|
6112
|
-
function
|
|
6198
|
+
function ri(e) {
|
|
6113
6199
|
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
6114
6200
|
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
6115
6201
|
}
|
|
6116
|
-
function
|
|
6202
|
+
function ii({ tenant: e }) {
|
|
6117
6203
|
return e?.logoUrl ? /* @__PURE__ */ E("img", {
|
|
6118
6204
|
className: "workspace-switcher-mark",
|
|
6119
6205
|
src: e.logoUrl,
|
|
@@ -6121,10 +6207,10 @@ function ni({ tenant: e }) {
|
|
|
6121
6207
|
loading: "lazy"
|
|
6122
6208
|
}) : /* @__PURE__ */ E("span", {
|
|
6123
6209
|
className: "workspace-switcher-mark",
|
|
6124
|
-
children:
|
|
6210
|
+
children: ri(e?.name)
|
|
6125
6211
|
});
|
|
6126
6212
|
}
|
|
6127
|
-
function
|
|
6213
|
+
function ai(e, t) {
|
|
6128
6214
|
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
6129
6215
|
let { label: n, icon: r, href: i } = e;
|
|
6130
6216
|
return /* @__PURE__ */ D(i ? t ?? "a" : "button", {
|
|
@@ -6136,7 +6222,7 @@ function ri(e, t) {
|
|
|
6136
6222
|
}) : null, n]
|
|
6137
6223
|
});
|
|
6138
6224
|
}
|
|
6139
|
-
var
|
|
6225
|
+
var oi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
|
|
6140
6226
|
return /* @__PURE__ */ D("button", {
|
|
6141
6227
|
ref: a,
|
|
6142
6228
|
type: "button",
|
|
@@ -6144,7 +6230,7 @@ var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
6144
6230
|
"aria-haspopup": "true",
|
|
6145
6231
|
"aria-label": n,
|
|
6146
6232
|
...i,
|
|
6147
|
-
children: [/* @__PURE__ */ E(
|
|
6233
|
+
children: [/* @__PURE__ */ E(ii, { tenant: t }), e ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
|
|
6148
6234
|
className: "workspace-switcher-trigger-name",
|
|
6149
6235
|
children: t?.name
|
|
6150
6236
|
}), /* @__PURE__ */ E(Y, {
|
|
@@ -6156,36 +6242,36 @@ var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
6156
6242
|
});
|
|
6157
6243
|
//#endregion
|
|
6158
6244
|
//#region src/components/toast.js
|
|
6159
|
-
function
|
|
6160
|
-
|
|
6245
|
+
function si() {
|
|
6246
|
+
Wr();
|
|
6161
6247
|
}
|
|
6162
|
-
var
|
|
6248
|
+
var ci = /* @__PURE__ */ new Set([
|
|
6163
6249
|
"success",
|
|
6164
6250
|
"info",
|
|
6165
6251
|
"warning",
|
|
6166
6252
|
"danger"
|
|
6167
6253
|
]);
|
|
6168
|
-
function
|
|
6254
|
+
function li(e, t = "info") {
|
|
6169
6255
|
let n = "info", r = {};
|
|
6170
|
-
typeof t == "string" ? n =
|
|
6256
|
+
typeof t == "string" ? n = ci.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = ci.has(r.variant) ? r.variant : "info"), Vr(e, n, r);
|
|
6171
6257
|
}
|
|
6172
|
-
function
|
|
6173
|
-
|
|
6258
|
+
function ui(e, t = {}) {
|
|
6259
|
+
Vr(e, "danger", t);
|
|
6174
6260
|
}
|
|
6175
|
-
|
|
6261
|
+
li.promise = (e, t, n = {}) => {
|
|
6176
6262
|
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
6177
|
-
return
|
|
6263
|
+
return li(t.loading || "Loading...", {
|
|
6178
6264
|
...n,
|
|
6179
6265
|
variant: "info",
|
|
6180
6266
|
id: r,
|
|
6181
6267
|
duration: 0
|
|
6182
|
-
}), e.then((e) => (
|
|
6268
|
+
}), e.then((e) => (li((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
6183
6269
|
...n,
|
|
6184
6270
|
variant: "success",
|
|
6185
6271
|
id: r,
|
|
6186
6272
|
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
6187
6273
|
}), e)).catch((e) => {
|
|
6188
|
-
throw
|
|
6274
|
+
throw li((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
6189
6275
|
...n,
|
|
6190
6276
|
variant: "danger",
|
|
6191
6277
|
id: r,
|
|
@@ -6195,7 +6281,7 @@ si.promise = (e, t, n = {}) => {
|
|
|
6195
6281
|
};
|
|
6196
6282
|
//#endregion
|
|
6197
6283
|
//#region src/lib/useCommandPaletteShortcut.js
|
|
6198
|
-
function
|
|
6284
|
+
function di(e, { key: t = "k" } = {}) {
|
|
6199
6285
|
let n = d(e);
|
|
6200
6286
|
o(() => {
|
|
6201
6287
|
n.current = e;
|
|
@@ -6208,7 +6294,7 @@ function li(e, { key: t = "k" } = {}) {
|
|
|
6208
6294
|
}
|
|
6209
6295
|
//#endregion
|
|
6210
6296
|
//#region src/lib/usePagination.js
|
|
6211
|
-
function
|
|
6297
|
+
function fi(e, t = 10) {
|
|
6212
6298
|
let [n, r] = f(1), [i, a] = f(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
|
|
6213
6299
|
o(() => {
|
|
6214
6300
|
n > c && r(c);
|
|
@@ -6234,4 +6320,4 @@ function ui(e, t = 10) {
|
|
|
6234
6320
|
};
|
|
6235
6321
|
}
|
|
6236
6322
|
//#endregion
|
|
6237
|
-
export { ke as AppAccordion, je as AppActionIcon, Ie as AppAlert, Ue as AppAsyncBlock, nt as AppAutocomplete, ct as AppAvatar, dt as AppAvatarGroup, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, Be as AppButton, _t as AppCard, yt as AppCheckbox, bt as AppChip, wt as AppChoiceCard, Tt as AppChoiceChip, Et as AppColorField, Nt as AppCommandPalette, Rt as AppCompareTable, Ht as AppConfirmDialog, Wt as AppConsentBanner, Kt as AppCopyButton, Jt as AppCountrySelect,
|
|
6323
|
+
export { ke as AppAccordion, je as AppActionIcon, Ie as AppAlert, Ue as AppAsyncBlock, nt as AppAutocomplete, ct as AppAvatar, dt as AppAvatarGroup, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, Be as AppButton, _t as AppCard, yt as AppCheckbox, bt as AppChip, wt as AppChoiceCard, Tt as AppChoiceChip, Et as AppColorField, Nt as AppCommandPalette, Rt as AppCompareTable, Ht as AppConfirmDialog, Wt as AppConsentBanner, Kt as AppCopyButton, Jt as AppCountrySelect, on as AppDataTable, sn as AppDatePicker, cn as AppDateRangePicker, ln as AppDescriptions, fn as AppDropdown, Ve as AppEmptyState, yn as AppFileAttachment, Sn as AppFilePicker, Cn as AppFloatingDock, wn as AppFormActions, Tn as AppFormRow, En as AppFormSection, Y as AppIcon, Dn as AppInfoList, qe as AppInfoTip, zt as AppInput, Mn as AppKpiTile, In as AppLink, Rn as AppLogoPicker, Hn as AppMeter, jt as AppModal, Un as AppMultiSelect, Wn as AppNumberInput, Gn as AppOtpInput, Kn as AppPageHeader, qn as AppPagination, Jn as AppPhoneNumberInput, Ge as AppPopover, Yn as AppPricingCard, Qn as AppProgress, $n as AppRadio, er as AppRepeater, Z as AppRequiredMark, tr as AppResourceCard, rr as AppResult, ir as AppScrollbar, ar as AppSearch, sr as AppSegmented, lr as AppSelect, $t as AppSelectMini, ur as AppShell, pr as AppSidebarMenu, Yt as AppSkeleton, Xt as AppSkeletonRows, mr as AppSlider, He as AppSpinner, gr as AppSplash, _r as AppStatusBadge, vr as AppStepper, br as AppSwitch, xr as AppTableEmptyState, tn as AppTablePagination, Sr as AppTableToolbar, Er as AppTabs, Dr as AppTagInput, Or as AppTextarea, jr as AppTimePicker, Ar as AppTimeline, Zr as AppToast, $r as AppToolbar, ce as AppTooltip, ei as AppWizard, ni as AppWorkspaceSwitcher, Vt as MODAL_ICONS, si as dismissAll, ui as errorToast, Ee as iconNames, Oe as registerIcons, li as toast, di as useCommandPaletteShortcut, fi as usePagination };
|