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