@webority/ui-react 0.9.19 → 0.9.21
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/{iconVariants.g-CLikIWjb.js → iconVariants.g-CVcnTWv5.js} +10 -0
- package/dist/types/components/AppConfirmDialog.d.ts +7 -1
- package/dist/types/components/iconGlyphs.g.d.ts +2 -0
- package/dist/types/components/iconVariants.g.d.ts +10 -0
- package/dist/ui-react.js +488 -458
- package/package.json +3 -3
package/dist/ui-react.js
CHANGED
|
@@ -174,7 +174,7 @@ var O = {
|
|
|
174
174
|
y: () => import("./y.g-BUi08-V_.js"),
|
|
175
175
|
z: () => import("./z.g-COIy6PjH.js")
|
|
176
176
|
}
|
|
177
|
-
}, A = /* @__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-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("."), j = {
|
|
177
|
+
}, A = /* @__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("."), j = {
|
|
178
178
|
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>",
|
|
179
179
|
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>",
|
|
180
180
|
"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>",
|
|
@@ -211,6 +211,8 @@ var O = {
|
|
|
211
211
|
"chevron-left": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08\"></path>",
|
|
212
212
|
"chevron-right": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08\"></path>",
|
|
213
213
|
"chevron-up": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52\"></path>",
|
|
214
|
+
"chevrons-left": "<path d=\"M12.7071 6.70711C13.0976 6.31658 13.0976 5.68342 12.7071 5.29289C12.3166 4.90237 11.6834 4.90237 11.2929 5.29289L5.29289 11.2929C4.91431 11.6715 4.90107 12.2811 5.26285 12.6757L10.7628 18.6757C11.136 19.0828 11.7686 19.1103 12.1757 18.7372C12.5828 18.364 12.6103 17.7314 12.2372 17.3243L7.38414 12.0301L12.7071 6.70711Z\" fill=\"currentColor\"/><path opacity=\"0.3\" d=\"M19.7071 6.70711C20.0976 6.31658 20.0976 5.68342 19.7071 5.29289C19.3166 4.90237 18.6834 4.90237 18.2929 5.29289L12.2929 11.2929C11.9143 11.6715 11.9011 12.2811 12.2628 12.6757L17.7628 18.6757C18.136 19.0828 18.7686 19.1103 19.1757 18.7372C19.5828 18.364 19.6103 17.7314 19.2372 17.3243L14.3841 12.0301L19.7071 6.70711Z\" fill=\"currentColor\"/>",
|
|
215
|
+
"chevrons-right": "<path d=\"M11.2929 6.70711C10.9024 6.31658 10.9024 5.68342 11.2929 5.29289C11.6834 4.90237 12.3166 4.90237 12.7071 5.29289L18.7071 11.2929C19.0857 11.6715 19.0989 12.2811 18.7372 12.6757L13.2372 18.6757C12.864 19.0828 12.2314 19.1103 11.8243 18.7372C11.4172 18.364 11.3897 17.7314 11.7628 17.3243L16.6159 12.0301L11.2929 6.70711Z\" fill=\"currentColor\"/><path opacity=\"0.3\" d=\"M4.29289 6.70711C3.90237 6.31658 3.90237 5.68342 4.29289 5.29289C4.68342 4.90237 5.31658 4.90237 5.70711 5.29289L11.7071 11.2929C12.0857 11.6715 12.0989 12.2811 11.7372 12.6757L6.23715 18.6757C5.86396 19.0828 5.23139 19.1103 4.82428 18.7372C4.41716 18.364 4.38965 17.7314 4.76285 17.3243L9.61586 12.0301L4.29289 6.70711Z\" fill=\"currentColor\"/>",
|
|
214
216
|
"chevrons-up-down": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17\"></path>",
|
|
215
217
|
circle: "<path d=\"M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
216
218
|
"circle-help": "<path d=\"M17 18.43h-4l-4.45 2.96A.997.997 0 0 1 7 20.56v-2.13c-3 0-5-2-5-5v-6c0-3 2-5 5-5h10c3 0 5 2 5 5v6c0 3-2 5-5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 11.36v-.21c0-.68.42-1.04.84-1.33.41-.28.82-.64.82-1.3 0-.92-.74-1.66-1.66-1.66-.92 0-1.66.74-1.66 1.66M11.995 13.75h.01\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -400,7 +402,7 @@ function ne(e, t) {
|
|
|
400
402
|
}
|
|
401
403
|
var re = null, ie = null, ae = !1, oe = /* @__PURE__ */ new Set();
|
|
402
404
|
function se() {
|
|
403
|
-
return ie ||= import("./iconVariants.g-
|
|
405
|
+
return ie ||= import("./iconVariants.g-CVcnTWv5.js").then((e) => {
|
|
404
406
|
re = e.VARIANT_GLYPHS, ae = !1;
|
|
405
407
|
for (let e of oe) e();
|
|
406
408
|
oe.clear();
|
|
@@ -860,16 +862,24 @@ var Pe = class extends HTMLElement {
|
|
|
860
862
|
}, Fe = 4, Ie = 300, Le = 400;
|
|
861
863
|
function Re(e, t, n = {}) {
|
|
862
864
|
if (!e || !t) return;
|
|
863
|
-
let r = e.getBoundingClientRect(), i =
|
|
864
|
-
|
|
865
|
-
let
|
|
866
|
-
t.style.
|
|
865
|
+
let r = e.getBoundingClientRect(), i = n.clampHeight ? t.scrollTop : 0;
|
|
866
|
+
n.clampHeight && (t.style.maxHeight = "");
|
|
867
|
+
let a = t.offsetHeight, o = window.innerHeight - r.bottom, s = o < a + Fe && r.top > o;
|
|
868
|
+
if (t.classList.toggle("drop-up", s), t.style.position = "fixed", t.style.top = s ? `${Math.max(Fe, r.top - a - Fe)}px` : `${r.bottom + Fe}px`, n.clampHeight) {
|
|
869
|
+
let e = s ? r.top - Fe * 2 : window.innerHeight - r.bottom - Fe * 2;
|
|
870
|
+
e < a && (t.style.maxHeight = `${Math.max(e, 0)}px`), t.scrollTop = i;
|
|
871
|
+
}
|
|
872
|
+
n.matchWidth && (r.width >= Ie ? (t.style.minWidth = `${r.width}px`, t.style.width = `${r.width}px`, t.style.maxWidth = `${r.width}px`) : (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${Math.min(Le, window.innerWidth - Fe * 2)}px`));
|
|
873
|
+
let c = t.offsetWidth, l = Math.min(r.left, window.innerWidth - c - Fe);
|
|
874
|
+
t.style.left = `${Math.max(Fe, l)}px`;
|
|
867
875
|
}
|
|
868
876
|
function ze(e, t) {
|
|
869
|
-
Be(e), e._reanchor = t,
|
|
877
|
+
Be(e), e._reanchor = t, e._reanchorScroll = (n) => {
|
|
878
|
+
n.target instanceof Node && typeof e.contains == "function" && e.contains(n.target) || t();
|
|
879
|
+
}, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchorScroll, !0);
|
|
870
880
|
}
|
|
871
881
|
function Be(e) {
|
|
872
|
-
e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e.
|
|
882
|
+
e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchorScroll, !0), e._reanchor = null, e._reanchorScroll = null);
|
|
873
883
|
}
|
|
874
884
|
var Ve = "data-wui-mirror";
|
|
875
885
|
function K(e, t) {
|
|
@@ -920,6 +930,8 @@ var He = {
|
|
|
920
930
|
"chevron-left": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08\"></path>",
|
|
921
931
|
"chevron-right": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08\"></path>",
|
|
922
932
|
"chevron-up": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52\"></path>",
|
|
933
|
+
"chevrons-left": "<path d=\"M12.7071 6.70711C13.0976 6.31658 13.0976 5.68342 12.7071 5.29289C12.3166 4.90237 11.6834 4.90237 11.2929 5.29289L5.29289 11.2929C4.91431 11.6715 4.90107 12.2811 5.26285 12.6757L10.7628 18.6757C11.136 19.0828 11.7686 19.1103 12.1757 18.7372C12.5828 18.364 12.6103 17.7314 12.2372 17.3243L7.38414 12.0301L12.7071 6.70711Z\" fill=\"currentColor\"/><path opacity=\"0.3\" d=\"M19.7071 6.70711C20.0976 6.31658 20.0976 5.68342 19.7071 5.29289C19.3166 4.90237 18.6834 4.90237 18.2929 5.29289L12.2929 11.2929C11.9143 11.6715 11.9011 12.2811 12.2628 12.6757L17.7628 18.6757C18.136 19.0828 18.7686 19.1103 19.1757 18.7372C19.5828 18.364 19.6103 17.7314 19.2372 17.3243L14.3841 12.0301L19.7071 6.70711Z\" fill=\"currentColor\"/>",
|
|
934
|
+
"chevrons-right": "<path d=\"M11.2929 6.70711C10.9024 6.31658 10.9024 5.68342 11.2929 5.29289C11.6834 4.90237 12.3166 4.90237 12.7071 5.29289L18.7071 11.2929C19.0857 11.6715 19.0989 12.2811 18.7372 12.6757L13.2372 18.6757C12.864 19.0828 12.2314 19.1103 11.8243 18.7372C11.4172 18.364 11.3897 17.7314 11.7628 17.3243L16.6159 12.0301L11.2929 6.70711Z\" fill=\"currentColor\"/><path opacity=\"0.3\" d=\"M4.29289 6.70711C3.90237 6.31658 3.90237 5.68342 4.29289 5.29289C4.68342 4.90237 5.31658 4.90237 5.70711 5.29289L11.7071 11.2929C12.0857 11.6715 12.0989 12.2811 11.7372 12.6757L6.23715 18.6757C5.86396 19.0828 5.23139 19.1103 4.82428 18.7372C4.41716 18.364 4.38965 17.7314 4.76285 17.3243L9.61586 12.0301L4.29289 6.70711Z\" fill=\"currentColor\"/>",
|
|
923
935
|
"chevrons-up-down": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17\"></path>",
|
|
924
936
|
circle: "<path d=\"M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
925
937
|
"circle-help": "<path d=\"M17 18.43h-4l-4.45 2.96A.997.997 0 0 1 7 20.56v-2.13c-3 0-5-2-5-5v-6c0-3 2-5 5-5h10c3 0 5 2 5 5v6c0 3-2 5-5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 11.36v-.21c0-.68.42-1.04.84-1.33.41-.28.82-.64.82-1.3 0-.92-.74-1.66-1.66-1.66-.92 0-1.66.74-1.66 1.66M11.995 13.75h.01\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -1547,7 +1559,7 @@ var We = Symbol("wui.trustedHtml"), J = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1547
1559
|
t && e.contains(document.activeElement) && t.focus();
|
|
1548
1560
|
}
|
|
1549
1561
|
_position(e, t) {
|
|
1550
|
-
Re(e, t);
|
|
1562
|
+
Re(e, t, { clampHeight: !0 });
|
|
1551
1563
|
}
|
|
1552
1564
|
_setFocus(e, t, n, r) {
|
|
1553
1565
|
let { y: i, m: a } = nt(e, t);
|
|
@@ -1839,7 +1851,7 @@ var We = Symbol("wui.trustedHtml"), J = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1839
1851
|
i && (i.textContent = this._start ? this._end ? `${et(this._start)} – ${et(this._end)}` : "Pick an end date" : "Pick a start date");
|
|
1840
1852
|
}
|
|
1841
1853
|
_position(e, t) {
|
|
1842
|
-
Re(e, t);
|
|
1854
|
+
Re(e, t, { clampHeight: !0 });
|
|
1843
1855
|
}
|
|
1844
1856
|
_pick(e) {
|
|
1845
1857
|
if (!this._start || this._start && this._end) {
|
|
@@ -3737,7 +3749,13 @@ function Tt(e, t) {
|
|
|
3737
3749
|
return t;
|
|
3738
3750
|
}
|
|
3739
3751
|
}
|
|
3740
|
-
function Et(e) {
|
|
3752
|
+
function Et(e, t) {
|
|
3753
|
+
if (t <= 0) return 0;
|
|
3754
|
+
let n = 0;
|
|
3755
|
+
for (let r = 0; r < e.length; r++) if (/[0-9]/.test(e[r]) && (n += 1, n === t)) return r + 1;
|
|
3756
|
+
return e.length;
|
|
3757
|
+
}
|
|
3758
|
+
function Dt(e) {
|
|
3741
3759
|
if (!X) return null;
|
|
3742
3760
|
try {
|
|
3743
3761
|
return X.getExampleNumber(e, X.examples)?.formatNational() || null;
|
|
@@ -3745,7 +3763,7 @@ function Et(e) {
|
|
|
3745
3763
|
return null;
|
|
3746
3764
|
}
|
|
3747
3765
|
}
|
|
3748
|
-
function
|
|
3766
|
+
function Ot(e) {
|
|
3749
3767
|
if (!X || !e) return null;
|
|
3750
3768
|
try {
|
|
3751
3769
|
if (!X.isValidPhoneNumber(e)) return !1;
|
|
@@ -3755,7 +3773,7 @@ function Dt(e) {
|
|
|
3755
3773
|
return null;
|
|
3756
3774
|
}
|
|
3757
3775
|
}
|
|
3758
|
-
function
|
|
3776
|
+
function kt(e) {
|
|
3759
3777
|
if (!X) return null;
|
|
3760
3778
|
try {
|
|
3761
3779
|
let t = X.getExampleNumber(e, X.examples);
|
|
@@ -3764,7 +3782,7 @@ function Ot(e) {
|
|
|
3764
3782
|
return null;
|
|
3765
3783
|
}
|
|
3766
3784
|
}
|
|
3767
|
-
function
|
|
3785
|
+
function At(e) {
|
|
3768
3786
|
if (!X || !e?.trim().startsWith("+")) return null;
|
|
3769
3787
|
try {
|
|
3770
3788
|
let t = new X.AsYouType();
|
|
@@ -3778,7 +3796,7 @@ function kt(e) {
|
|
|
3778
3796
|
return null;
|
|
3779
3797
|
}
|
|
3780
3798
|
}
|
|
3781
|
-
var
|
|
3799
|
+
var jt = class extends HTMLElement {
|
|
3782
3800
|
static formAssociated = !0;
|
|
3783
3801
|
static get observedAttributes() {
|
|
3784
3802
|
return [
|
|
@@ -3828,7 +3846,7 @@ var At = class extends HTMLElement {
|
|
|
3828
3846
|
return this._national ? `+${xt(this._country)}${this._national}` : "";
|
|
3829
3847
|
}
|
|
3830
3848
|
set value(e) {
|
|
3831
|
-
let t = String(e ?? "").trim(), n =
|
|
3849
|
+
let t = String(e ?? "").trim(), n = At(t);
|
|
3832
3850
|
if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
|
|
3833
3851
|
else if (t.startsWith("+")) {
|
|
3834
3852
|
let e = t.replace(/[^0-9]/g, ""), n = String(xt(this._country));
|
|
@@ -3847,25 +3865,25 @@ var At = class extends HTMLElement {
|
|
|
3847
3865
|
}
|
|
3848
3866
|
render() {
|
|
3849
3867
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
|
|
3850
|
-
let e = this.getAttribute("placeholder") ||
|
|
3868
|
+
let e = this.getAttribute("placeholder") || Dt(this._country) || "Enter phone number";
|
|
3851
3869
|
this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
|
|
3852
3870
|
let t = `${this.id}-listbox`;
|
|
3853
3871
|
this._listboxId = t;
|
|
3854
|
-
let n = bt.map(([e, n, r], i) => `<button type="button" role="option" id="${
|
|
3872
|
+
let n = bt.map(([e, n, r], i) => `<button type="button" role="option" id="${Mt(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${St(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
|
|
3855
3873
|
this.innerHTML = `
|
|
3856
3874
|
<div class="phone-input-wrap">
|
|
3857
3875
|
<div class="phone-country-adornment">
|
|
3858
|
-
<button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
3876
|
+
<button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Mt(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
3859
3877
|
<span class="${St(this._country)}" data-flag aria-hidden="true"></span>
|
|
3860
3878
|
${q("chevron-down", { className: "phone-chevron" })}
|
|
3861
3879
|
<span class="phone-dial" data-dial>+${xt(this._country)}</span>
|
|
3862
3880
|
</button>
|
|
3863
|
-
<div class="country-dropdown-menu" role="listbox" id="${
|
|
3864
|
-
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${q("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${
|
|
3881
|
+
<div class="country-dropdown-menu" role="listbox" id="${Mt(t)}" tabindex="-1" hidden>
|
|
3882
|
+
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${q("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${Mt(t)}" aria-autocomplete="list" /></div>
|
|
3865
3883
|
<div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
|
|
3866
3884
|
</div>
|
|
3867
3885
|
</div>
|
|
3868
|
-
<input type="tel" class="input" placeholder="${
|
|
3886
|
+
<input type="tel" class="input" placeholder="${Mt(e)}" value="${Mt(Tt(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${Mt(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${Mt(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
3869
3887
|
</div>
|
|
3870
3888
|
<div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, K(this, this.value), this._wire();
|
|
3871
3889
|
}
|
|
@@ -3901,7 +3919,7 @@ var At = class extends HTMLElement {
|
|
|
3901
3919
|
let n = t.dataset.iso === e;
|
|
3902
3920
|
t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
|
|
3903
3921
|
}
|
|
3904
|
-
!this.getAttribute("placeholder") && o && (o.placeholder =
|
|
3922
|
+
!this.getAttribute("placeholder") && o && (o.placeholder = Dt(e) || "Enter phone number"), o && this._national && (o.value = Tt(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
|
|
3905
3923
|
}, g = (t) => {
|
|
3906
3924
|
let n = this._visibleItems();
|
|
3907
3925
|
if (t.key === "ArrowDown") {
|
|
@@ -3935,7 +3953,7 @@ var At = class extends HTMLElement {
|
|
|
3935
3953
|
let _ = this.querySelector("[data-phone-error]"), v = (e) => {
|
|
3936
3954
|
if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), _) {
|
|
3937
3955
|
if (e) {
|
|
3938
|
-
let e =
|
|
3956
|
+
let e = Dt(this._country);
|
|
3939
3957
|
_.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
|
|
3940
3958
|
}
|
|
3941
3959
|
_.hidden = !e;
|
|
@@ -3943,14 +3961,19 @@ var At = class extends HTMLElement {
|
|
|
3943
3961
|
};
|
|
3944
3962
|
o.addEventListener("input", (e) => {
|
|
3945
3963
|
e.stopPropagation();
|
|
3946
|
-
let t = o.value.replace(/[^0-9]/g, ""),
|
|
3947
|
-
|
|
3948
|
-
let
|
|
3949
|
-
|
|
3964
|
+
let t = o.selectionStart ?? o.value.length, n = o.value.slice(0, t).replace(/[^0-9]/g, "").length, r = o.value.replace(/[^0-9]/g, ""), i = kt(this._country);
|
|
3965
|
+
i && r.length > i && (r = r.slice(0, i)), this._national = r;
|
|
3966
|
+
let a = Tt(this._country, this._national);
|
|
3967
|
+
if (o.value !== a) {
|
|
3968
|
+
o.value = a;
|
|
3969
|
+
let e = Et(a, Math.min(n, r.length));
|
|
3970
|
+
o.setSelectionRange(e, e);
|
|
3971
|
+
}
|
|
3972
|
+
this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || Ot(this.value) === !0) && v(!1);
|
|
3950
3973
|
}), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
|
|
3951
|
-
v(this._national.length > 0 &&
|
|
3974
|
+
v(this._national.length > 0 && Ot(this.value) === !1), this.value !== this._committedValue && this._emitChange();
|
|
3952
3975
|
}), o.addEventListener("paste", (e) => {
|
|
3953
|
-
let t =
|
|
3976
|
+
let t = At(e.clipboardData?.getData("text"));
|
|
3954
3977
|
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = Tt(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
|
|
3955
3978
|
}), this._bindGlobal = () => {
|
|
3956
3979
|
this._teardownGlobals?.(), this._onDocClick = (e) => {
|
|
@@ -3962,7 +3985,7 @@ var At = class extends HTMLElement {
|
|
|
3962
3985
|
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Be(this);
|
|
3963
3986
|
}, this._bindGlobal(), wt().then((e) => {
|
|
3964
3987
|
if (!(!e || !o.isConnected) && (this._national && (o.value = Tt(this._country, this._national)), !this.getAttribute("placeholder"))) {
|
|
3965
|
-
let e =
|
|
3988
|
+
let e = Dt(this._country);
|
|
3966
3989
|
e && (o.placeholder = e);
|
|
3967
3990
|
}
|
|
3968
3991
|
}), this._syncMirror();
|
|
@@ -3973,7 +3996,7 @@ var At = class extends HTMLElement {
|
|
|
3973
3996
|
disconnectedCallback() {
|
|
3974
3997
|
this._teardown();
|
|
3975
3998
|
}
|
|
3976
|
-
},
|
|
3999
|
+
}, Mt = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), Nt = class extends HTMLElement {
|
|
3977
4000
|
static formAssociated = !0;
|
|
3978
4001
|
static get observedAttributes() {
|
|
3979
4002
|
return [
|
|
@@ -4062,19 +4085,19 @@ var At = class extends HTMLElement {
|
|
|
4062
4085
|
this._listboxId = u;
|
|
4063
4086
|
let d = e.map((e, t) => {
|
|
4064
4087
|
let n = String(e.value) === String(this._value);
|
|
4065
|
-
return `<button type="button" role="option" id="${
|
|
4088
|
+
return `<button type="button" role="option" id="${Pt(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Pt(e.value)}" aria-selected="${n}">${Ke(e)}</button>`;
|
|
4066
4089
|
}).join("");
|
|
4067
4090
|
this.innerHTML = `
|
|
4068
4091
|
<div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
|
|
4069
|
-
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
4092
|
+
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Pt(u)}" aria-label="${Pt(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
4070
4093
|
${a ? q(a, { className: "search-select-icon" }) : ""}
|
|
4071
4094
|
${o ? `<span class="search-select-prefix">${J(o)}</span>` : ""}
|
|
4072
4095
|
<span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? Ke(l) : J(s)}</span>
|
|
4073
4096
|
${n ? `<span class="search-select-reset" role="button" aria-label="Clear selection" hidden>${q("x")}</span>` : ""}
|
|
4074
4097
|
${q("chevron-down", { className: "search-select-caret" })}
|
|
4075
4098
|
</button>
|
|
4076
|
-
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${
|
|
4077
|
-
${t ? `<div class="search-select-search">${q("search")}<input class="search-select-input" placeholder="${
|
|
4099
|
+
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Pt(u)}" tabindex="-1" hidden>
|
|
4100
|
+
${t ? `<div class="search-select-search">${q("search")}<input class="search-select-input" placeholder="${Pt(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${q("x")}</button></div>` : ""}
|
|
4078
4101
|
<div class="search-select-options">${d}<div class="search-select-empty" hidden>No matches</div></div>
|
|
4079
4102
|
</div>
|
|
4080
4103
|
</div>`, this._rendered = !0, K(this, this._value), this._wire(), this._syncReset();
|
|
@@ -4179,7 +4202,7 @@ var At = class extends HTMLElement {
|
|
|
4179
4202
|
disconnectedCallback() {
|
|
4180
4203
|
this._teardown();
|
|
4181
4204
|
}
|
|
4182
|
-
},
|
|
4205
|
+
}, Pt = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Ft = class extends HTMLElement {
|
|
4183
4206
|
static formAssociated = !0;
|
|
4184
4207
|
static get observedAttributes() {
|
|
4185
4208
|
return [
|
|
@@ -4219,19 +4242,19 @@ var At = class extends HTMLElement {
|
|
|
4219
4242
|
return this._value;
|
|
4220
4243
|
}
|
|
4221
4244
|
set value(e) {
|
|
4222
|
-
this._value = this._snapToStep(this._clamp(
|
|
4245
|
+
this._value = this._snapToStep(this._clamp(It(e, this._value))), this._syncValue(), this._syncMirrors();
|
|
4223
4246
|
}
|
|
4224
4247
|
get start() {
|
|
4225
4248
|
return this._start;
|
|
4226
4249
|
}
|
|
4227
4250
|
set start(e) {
|
|
4228
|
-
this._start = Math.min(this._snapToStep(this._clamp(
|
|
4251
|
+
this._start = Math.min(this._snapToStep(this._clamp(It(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
|
|
4229
4252
|
}
|
|
4230
4253
|
get end() {
|
|
4231
4254
|
return this._end;
|
|
4232
4255
|
}
|
|
4233
4256
|
set end(e) {
|
|
4234
|
-
this._end = Math.max(this._snapToStep(this._clamp(
|
|
4257
|
+
this._end = Math.max(this._snapToStep(this._clamp(It(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
|
|
4235
4258
|
}
|
|
4236
4259
|
attributeChangedCallback(e, t, n) {
|
|
4237
4260
|
if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
|
|
@@ -4244,19 +4267,19 @@ var At = class extends HTMLElement {
|
|
|
4244
4267
|
this._isRange() ? this._resetRange() : this._resetSingle();
|
|
4245
4268
|
}
|
|
4246
4269
|
_updateFromAttribute(e) {
|
|
4247
|
-
e === "value" ? this._value = this._snapToStep(this._clamp(
|
|
4270
|
+
e === "value" ? this._value = this._snapToStep(this._clamp(It(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(It(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(It(this.getAttribute("end"), this._end))));
|
|
4248
4271
|
}
|
|
4249
4272
|
_isRange() {
|
|
4250
4273
|
return this.hasAttribute("range");
|
|
4251
4274
|
}
|
|
4252
4275
|
_min() {
|
|
4253
|
-
return
|
|
4276
|
+
return It(this.getAttribute("min"), 0);
|
|
4254
4277
|
}
|
|
4255
4278
|
_max() {
|
|
4256
|
-
return
|
|
4279
|
+
return It(this.getAttribute("max"), 100);
|
|
4257
4280
|
}
|
|
4258
4281
|
_step() {
|
|
4259
|
-
return
|
|
4282
|
+
return It(this.getAttribute("step"), 1);
|
|
4260
4283
|
}
|
|
4261
4284
|
_clamp(e) {
|
|
4262
4285
|
return Math.max(this._min(), Math.min(e, this._max()));
|
|
@@ -4321,7 +4344,7 @@ var At = class extends HTMLElement {
|
|
|
4321
4344
|
aria-valuenow="${this._value}"
|
|
4322
4345
|
aria-valuetext="${this._formatValue(this._value)}"
|
|
4323
4346
|
${a ? "disabled" : ""}
|
|
4324
|
-
aria-label="${
|
|
4347
|
+
aria-label="${Lt(this.getAttribute("aria-label") || "Value")}"
|
|
4325
4348
|
></button>
|
|
4326
4349
|
`}
|
|
4327
4350
|
${this.hasAttribute("show-value") ? n ? `<span class="slider-value">${this._formatValue(this._start)} – ${this._formatValue(this._end)}</span>` : `<span class="slider-value">${this._formatValue(this._value)}</span>` : ""}
|
|
@@ -4421,10 +4444,10 @@ var At = class extends HTMLElement {
|
|
|
4421
4444
|
disconnectedCallback() {
|
|
4422
4445
|
this._teardown();
|
|
4423
4446
|
}
|
|
4424
|
-
},
|
|
4447
|
+
}, It = (e, t) => {
|
|
4425
4448
|
let n = Number.parseFloat(e);
|
|
4426
4449
|
return Number.isFinite(n) ? n : t;
|
|
4427
|
-
},
|
|
4450
|
+
}, Lt = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Rt = class extends HTMLElement {
|
|
4428
4451
|
static formAssociated = !0;
|
|
4429
4452
|
_accessibleName() {
|
|
4430
4453
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
|
|
@@ -4497,7 +4520,7 @@ var At = class extends HTMLElement {
|
|
|
4497
4520
|
K(this, this._values.join(",")), this.innerHTML = `
|
|
4498
4521
|
<div class="search-select${t}">
|
|
4499
4522
|
<div class="input search-select-control search-select-multi"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
|
|
4500
|
-
<input type="text" class="ms-input" data-input aria-label="${
|
|
4523
|
+
<input type="text" class="ms-input" data-input aria-label="${Bt(this._accessibleName())}" placeholder="${Bt(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
|
|
4501
4524
|
<div class="ms-chips" data-chips></div>
|
|
4502
4525
|
</div>
|
|
4503
4526
|
</div>`, this._rendered = !0, K(this, this._values.join(",")), this._renderControl(), this._wire();
|
|
@@ -4509,7 +4532,7 @@ var At = class extends HTMLElement {
|
|
|
4509
4532
|
e.innerHTML = "";
|
|
4510
4533
|
return;
|
|
4511
4534
|
}
|
|
4512
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${
|
|
4535
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${zt(e)}</span><button type="button" class="chip-remove" data-remove="${Bt(e)}" aria-label="Remove ${Bt(e)}">${q("x")}</button></span>`).join("");
|
|
4513
4536
|
}
|
|
4514
4537
|
}
|
|
4515
4538
|
_wire() {
|
|
@@ -4580,18 +4603,18 @@ var At = class extends HTMLElement {
|
|
|
4580
4603
|
disconnectedCallback() {
|
|
4581
4604
|
this._teardown();
|
|
4582
4605
|
}
|
|
4583
|
-
},
|
|
4606
|
+
}, zt = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Bt = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Vt = (e) => String(e).padStart(2, "0"), Ht = (e, t) => `${Vt(e)}:${Vt(t)}`, Ut = (e) => {
|
|
4584
4607
|
let t = /^(\d{2}):(\d{2})$/.exec(e || "");
|
|
4585
4608
|
return t ? {
|
|
4586
4609
|
h: +t[1],
|
|
4587
4610
|
m: +t[2]
|
|
4588
4611
|
} : null;
|
|
4589
|
-
},
|
|
4612
|
+
}, Wt = (e, t = "24") => {
|
|
4590
4613
|
if (!e) return "";
|
|
4591
|
-
if (t === "24") return
|
|
4614
|
+
if (t === "24") return Ht(e.h, e.m);
|
|
4592
4615
|
let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
|
|
4593
|
-
return `${n}:${
|
|
4594
|
-
},
|
|
4616
|
+
return `${n}:${Vt(e.m)} ${r}`;
|
|
4617
|
+
}, Gt = class extends HTMLElement {
|
|
4595
4618
|
static formAssociated = !0;
|
|
4596
4619
|
static get observedAttributes() {
|
|
4597
4620
|
return [
|
|
@@ -4638,11 +4661,11 @@ var At = class extends HTMLElement {
|
|
|
4638
4661
|
}
|
|
4639
4662
|
render() {
|
|
4640
4663
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
|
|
4641
|
-
let e = this.getAttribute("placeholder") || "Select time", t =
|
|
4664
|
+
let e = this.getAttribute("placeholder") || "Select time", t = Ut(this._value), n = this.getAttribute("format") || "24", r = this.getAttribute("size"), i = r === "sm" ? " input-sm" : r === "lg" ? " input-lg" : "", a = this.getAttribute("aria-label"), o = this.getAttribute("aria-describedby");
|
|
4642
4665
|
this.innerHTML = `
|
|
4643
4666
|
<div class="timepicker">
|
|
4644
4667
|
<button type="button" class="input timepicker-trigger${i}${t ? " has-value" : ""}" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${J(a)}"` : ""}${o ? ` aria-describedby="${J(o)}"` : ""}>
|
|
4645
|
-
<span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ?
|
|
4668
|
+
<span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? Wt(t, n) : J(e)}</span>
|
|
4646
4669
|
${q("clock")}
|
|
4647
4670
|
</button>
|
|
4648
4671
|
<div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
|
|
@@ -4654,14 +4677,14 @@ var At = class extends HTMLElement {
|
|
|
4654
4677
|
_syncTrigger() {
|
|
4655
4678
|
let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
|
|
4656
4679
|
if (!t) return;
|
|
4657
|
-
let n =
|
|
4658
|
-
t.textContent = n ?
|
|
4680
|
+
let n = Ut(this._value), r = this.getAttribute("format") || "24";
|
|
4681
|
+
t.textContent = n ? Wt(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
|
|
4659
4682
|
}
|
|
4660
4683
|
_buildTimes() {
|
|
4661
|
-
let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r =
|
|
4684
|
+
let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = Ut(t) || {
|
|
4662
4685
|
h: 0,
|
|
4663
4686
|
m: 0
|
|
4664
|
-
}, i =
|
|
4687
|
+
}, i = Ut(n) || {
|
|
4665
4688
|
h: 23,
|
|
4666
4689
|
m: 59
|
|
4667
4690
|
}, a = [], o = r.h, s = r.m;
|
|
@@ -4674,10 +4697,10 @@ var At = class extends HTMLElement {
|
|
|
4674
4697
|
_renderOptions() {
|
|
4675
4698
|
let e = this.querySelector(".timepicker-pop");
|
|
4676
4699
|
if (!e) return;
|
|
4677
|
-
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r =
|
|
4700
|
+
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = Ut(this._value), i = this._focus, a = "";
|
|
4678
4701
|
for (let e = 0; e < n.length; e++) {
|
|
4679
|
-
let o = n[e], s =
|
|
4680
|
-
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${
|
|
4702
|
+
let o = n[e], s = Ht(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
|
|
4703
|
+
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${Wt(o, t)}</button>`;
|
|
4681
4704
|
}
|
|
4682
4705
|
e.innerHTML = a, this._focusActive();
|
|
4683
4706
|
}
|
|
@@ -4775,7 +4798,7 @@ var At = class extends HTMLElement {
|
|
|
4775
4798
|
disconnectedCallback() {
|
|
4776
4799
|
this._teardown();
|
|
4777
4800
|
}
|
|
4778
|
-
},
|
|
4801
|
+
}, Kt = "wui-wizard-step", qt = class extends HTMLElement {
|
|
4779
4802
|
static get observedAttributes() {
|
|
4780
4803
|
return [
|
|
4781
4804
|
"active",
|
|
@@ -4809,7 +4832,7 @@ var At = class extends HTMLElement {
|
|
|
4809
4832
|
this._beforeNext = typeof e == "function" ? e : null;
|
|
4810
4833
|
}
|
|
4811
4834
|
get _steps() {
|
|
4812
|
-
return [...this.querySelectorAll(`:scope > ${
|
|
4835
|
+
return [...this.querySelectorAll(`:scope > ${Kt}`)];
|
|
4813
4836
|
}
|
|
4814
4837
|
refresh() {
|
|
4815
4838
|
this._rendered && this._renderChrome();
|
|
@@ -4868,13 +4891,13 @@ var At = class extends HTMLElement {
|
|
|
4868
4891
|
return e.map((e, r) => {
|
|
4869
4892
|
let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
|
|
4870
4893
|
u = a === "done" ? q("check") : a === "error" ? q("alert-triangle") : a === "skipped" ? q("minus") : c ? q(c) : String(l);
|
|
4871
|
-
let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${
|
|
4872
|
-
return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${
|
|
4894
|
+
let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${Jt(s)}</span>` : "", h;
|
|
4895
|
+
return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${Jt(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${Jt(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${Jt(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
|
|
4873
4896
|
}).join("");
|
|
4874
4897
|
}
|
|
4875
4898
|
_footerHtml(e) {
|
|
4876
4899
|
let t = this._active, n = e.length - 1, r = this.hasAttribute("disabled") ? " disabled" : "", i = e[t]?.hasAttribute("optional") || this.hasAttribute("skippable"), a = this.getAttribute("back-label") || "Back", o = this.getAttribute("next-label") || "Next", s = this.getAttribute("skip-label") || "Skip", c = this.getAttribute("finish-label") || "Finish";
|
|
4877
|
-
return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${q("arrow-left", { className: "me-2" })}${
|
|
4900
|
+
return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${q("arrow-left", { className: "me-2" })}${Jt(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${Jt(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${Jt(o)}${q("arrow-right", { className: "ms-2" })}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${Jt(c)}</button>`}</span>`;
|
|
4878
4901
|
}
|
|
4879
4902
|
_wire() {
|
|
4880
4903
|
this._teardown(), this._onHeaderClick = (e) => {
|
|
@@ -4942,7 +4965,7 @@ var At = class extends HTMLElement {
|
|
|
4942
4965
|
_reflectActive(e) {
|
|
4943
4966
|
this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
|
|
4944
4967
|
}
|
|
4945
|
-
},
|
|
4968
|
+
}, Jt = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Yt = class extends HTMLElement {
|
|
4946
4969
|
static get observedAttributes() {
|
|
4947
4970
|
return [
|
|
4948
4971
|
"label",
|
|
@@ -4956,8 +4979,8 @@ var At = class extends HTMLElement {
|
|
|
4956
4979
|
let e = this.closest("wui-wizard");
|
|
4957
4980
|
e && typeof e.refresh == "function" && e.refresh();
|
|
4958
4981
|
}
|
|
4959
|
-
},
|
|
4960
|
-
async function
|
|
4982
|
+
}, Xt = 2e3;
|
|
4983
|
+
async function Zt(e) {
|
|
4961
4984
|
try {
|
|
4962
4985
|
if (navigator.clipboard?.writeText) return await navigator.clipboard.writeText(e), !0;
|
|
4963
4986
|
} catch {}
|
|
@@ -4970,14 +4993,14 @@ async function Xt(e) {
|
|
|
4970
4993
|
return !1;
|
|
4971
4994
|
}
|
|
4972
4995
|
}
|
|
4973
|
-
var
|
|
4996
|
+
var Qt = "image/png,image/jpeg,image/webp", $t = {
|
|
4974
4997
|
"image/png": [".png"],
|
|
4975
4998
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
4976
4999
|
"image/webp": [".webp"],
|
|
4977
5000
|
"image/gif": [".gif"],
|
|
4978
5001
|
"image/svg+xml": [".svg"],
|
|
4979
5002
|
"application/pdf": [".pdf"]
|
|
4980
|
-
},
|
|
5003
|
+
}, en = {
|
|
4981
5004
|
"image/png": "PNG",
|
|
4982
5005
|
"image/jpeg": "JPG",
|
|
4983
5006
|
"image/webp": "WEBP",
|
|
@@ -4991,7 +5014,7 @@ var Zt = "image/png,image/jpeg,image/webp", Qt = {
|
|
|
4991
5014
|
".gif": "GIF",
|
|
4992
5015
|
".svg": "SVG",
|
|
4993
5016
|
".pdf": "PDF"
|
|
4994
|
-
},
|
|
5017
|
+
}, tn = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), nn = [
|
|
4995
5018
|
".png",
|
|
4996
5019
|
".jpg",
|
|
4997
5020
|
".jpeg",
|
|
@@ -5002,37 +5025,37 @@ var Zt = "image/png,image/jpeg,image/webp", Qt = {
|
|
|
5002
5025
|
".avif",
|
|
5003
5026
|
".heic"
|
|
5004
5027
|
];
|
|
5005
|
-
function
|
|
5028
|
+
function rn(e) {
|
|
5006
5029
|
if (!e) return !1;
|
|
5007
5030
|
let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
|
|
5008
5031
|
if (t) return t.startsWith("image/");
|
|
5009
5032
|
let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
|
|
5010
|
-
return
|
|
5011
|
-
}
|
|
5012
|
-
function rn(e) {
|
|
5013
|
-
let t = en(e);
|
|
5014
|
-
return t.length ? t.every((e) => e.startsWith(".") ? tn.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
5033
|
+
return nn.some((e) => r.endsWith(e));
|
|
5015
5034
|
}
|
|
5016
5035
|
function an(e) {
|
|
5036
|
+
let t = tn(e);
|
|
5037
|
+
return t.length ? t.every((e) => e.startsWith(".") ? nn.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
5038
|
+
}
|
|
5039
|
+
function on(e) {
|
|
5017
5040
|
let t = [];
|
|
5018
|
-
for (let n of
|
|
5019
|
-
let e =
|
|
5041
|
+
for (let n of tn(e)) {
|
|
5042
|
+
let e = en[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
5020
5043
|
t.includes(e) || t.push(e);
|
|
5021
5044
|
}
|
|
5022
5045
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
5023
5046
|
}
|
|
5024
|
-
function
|
|
5025
|
-
let n =
|
|
5047
|
+
function sn(e, t) {
|
|
5048
|
+
let n = tn(t);
|
|
5026
5049
|
if (!n.length) return !0;
|
|
5027
5050
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
5028
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
5051
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && ($t[e] || []).some((e) => i.endsWith(e)));
|
|
5029
5052
|
}
|
|
5030
|
-
function
|
|
5053
|
+
function cn(e, t = {}) {
|
|
5031
5054
|
if (!e) return null;
|
|
5032
|
-
let n = t.accept === void 0 ?
|
|
5033
|
-
return
|
|
5055
|
+
let n = t.accept === void 0 ? Qt : t.accept, r = t.maxSizeMb || 5;
|
|
5056
|
+
return sn(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${on(n)} file.`;
|
|
5034
5057
|
}
|
|
5035
|
-
var
|
|
5058
|
+
var ln = {
|
|
5036
5059
|
minLength: 8,
|
|
5037
5060
|
uppercase: !0,
|
|
5038
5061
|
lowercase: !0,
|
|
@@ -5040,14 +5063,14 @@ var cn = {
|
|
|
5040
5063
|
special: !0,
|
|
5041
5064
|
uniqueChars: 0
|
|
5042
5065
|
};
|
|
5043
|
-
function
|
|
5044
|
-
return e === !0 || e == null ? { ...
|
|
5045
|
-
...
|
|
5066
|
+
function un(e) {
|
|
5067
|
+
return e === !0 || e == null ? { ...ln } : {
|
|
5068
|
+
...ln,
|
|
5046
5069
|
...e
|
|
5047
5070
|
};
|
|
5048
5071
|
}
|
|
5049
|
-
function
|
|
5050
|
-
let t =
|
|
5072
|
+
function dn(e) {
|
|
5073
|
+
let t = un(e), n = [];
|
|
5051
5074
|
if (t.minLength > 0 && n.push({
|
|
5052
5075
|
key: "length",
|
|
5053
5076
|
label: `At least ${t.minLength} characters long`,
|
|
@@ -5078,9 +5101,9 @@ function un(e) {
|
|
|
5078
5101
|
}
|
|
5079
5102
|
return n;
|
|
5080
5103
|
}
|
|
5081
|
-
function
|
|
5104
|
+
function fn(e, t) {
|
|
5082
5105
|
let n = e == null ? "" : String(e);
|
|
5083
|
-
return
|
|
5106
|
+
return dn(t).map((e) => ({
|
|
5084
5107
|
key: e.key,
|
|
5085
5108
|
label: e.label,
|
|
5086
5109
|
met: e.test(n)
|
|
@@ -5089,20 +5112,20 @@ function dn(e, t) {
|
|
|
5089
5112
|
var Z = (e, t) => {
|
|
5090
5113
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
5091
5114
|
};
|
|
5092
|
-
function
|
|
5093
|
-
Z("wui-select",
|
|
5115
|
+
function pn() {
|
|
5116
|
+
Z("wui-select", Nt), Z("wui-phone", jt), Z("wui-datepicker", rt), Z("wui-date-range", it), Z("wui-dock", at), Z("wui-feedback", dt), Z("wui-slider", Ft), Z("wui-timepicker", Gt), Z("wui-autocomplete", qe), Z("wui-multiselect", mt), Z("wui-taginput", Rt), Z("wui-otp", yt), Z("wui-status-icon", Pe), Z("wui-wizard-step", Yt), Z("wui-wizard", qt);
|
|
5094
5117
|
}
|
|
5095
|
-
|
|
5118
|
+
pn();
|
|
5096
5119
|
//#endregion
|
|
5097
5120
|
//#region src/components/AppPopover.jsx
|
|
5098
|
-
var
|
|
5121
|
+
var mn = {
|
|
5099
5122
|
start: "left",
|
|
5100
5123
|
end: "right",
|
|
5101
5124
|
top: "top",
|
|
5102
5125
|
bottom: "bottom",
|
|
5103
5126
|
auto: "auto"
|
|
5104
5127
|
};
|
|
5105
|
-
function
|
|
5128
|
+
function hn({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
|
|
5106
5129
|
I("AppPopover", l);
|
|
5107
5130
|
let u = s(), [f, p] = d(!1), m = (e) => {
|
|
5108
5131
|
p(e), o?.(e);
|
|
@@ -5124,7 +5147,7 @@ function mn({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
|
|
|
5124
5147
|
}), D = a === "click", O = a === "hover" || Array.isArray(a) && a.includes("hover");
|
|
5125
5148
|
return /* @__PURE__ */ T(x, {
|
|
5126
5149
|
trigger: a,
|
|
5127
|
-
placement:
|
|
5150
|
+
placement: mn[i] || i,
|
|
5128
5151
|
overlay: h,
|
|
5129
5152
|
rootClose: D,
|
|
5130
5153
|
delay: O ? {
|
|
@@ -5137,13 +5160,13 @@ function mn({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
|
|
|
5137
5160
|
}
|
|
5138
5161
|
//#endregion
|
|
5139
5162
|
//#region src/components/AppInfoTip.jsx
|
|
5140
|
-
function
|
|
5163
|
+
function gn({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
|
|
5141
5164
|
I("AppInfoTip", i);
|
|
5142
5165
|
let [a, o] = d(!1), s = !!e;
|
|
5143
5166
|
return !s && !t ? null : /* @__PURE__ */ T("span", {
|
|
5144
5167
|
className: `infotip${r ? ` ${r}` : ""}`,
|
|
5145
5168
|
...i,
|
|
5146
|
-
children: /* @__PURE__ */ T(
|
|
5169
|
+
children: /* @__PURE__ */ T(hn, {
|
|
5147
5170
|
trigger: /* @__PURE__ */ T("button", {
|
|
5148
5171
|
type: "button",
|
|
5149
5172
|
className: "infotip-btn",
|
|
@@ -5173,8 +5196,8 @@ function Q() {
|
|
|
5173
5196
|
}
|
|
5174
5197
|
//#endregion
|
|
5175
5198
|
//#region src/components/useWuiControl.js
|
|
5176
|
-
function
|
|
5177
|
-
let d = u(null), f = r ??
|
|
5199
|
+
function _n({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s = vn, on: c, syncDeps: l = [] } = {}) {
|
|
5200
|
+
let d = u(null), f = r ?? yn, p = i ?? bn, m = (s || vn).join("\0"), h = Object.keys(c ?? {}).join("\0"), g = u({});
|
|
5178
5201
|
g.current = {
|
|
5179
5202
|
ref: e,
|
|
5180
5203
|
value: t,
|
|
@@ -5192,7 +5215,7 @@ function gn({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events
|
|
|
5192
5215
|
_.current = null;
|
|
5193
5216
|
}
|
|
5194
5217
|
}, []), y = a((e) => {
|
|
5195
|
-
let t = g.current.eventKey ? g.current.eventKey.split("\0") :
|
|
5218
|
+
let t = g.current.eventKey ? g.current.eventKey.split("\0") : vn, n = Object.keys(g.current.on ?? {}), r = {
|
|
5196
5219
|
el: e,
|
|
5197
5220
|
names: t,
|
|
5198
5221
|
extraNames: n,
|
|
@@ -5222,7 +5245,7 @@ function gn({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events
|
|
|
5222
5245
|
...l
|
|
5223
5246
|
]), o(() => {
|
|
5224
5247
|
let e = d.current, t = _.current;
|
|
5225
|
-
!e || !t || (t.names.join("\0") !== (m ||
|
|
5248
|
+
!e || !t || (t.names.join("\0") !== (m || vn.join("\0")) || t.extraNames.join("\0") !== h) && (v(), y(e));
|
|
5226
5249
|
}, [
|
|
5227
5250
|
m,
|
|
5228
5251
|
h,
|
|
@@ -5233,15 +5256,15 @@ function gn({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events
|
|
|
5233
5256
|
innerRef: d
|
|
5234
5257
|
};
|
|
5235
5258
|
}
|
|
5236
|
-
var
|
|
5237
|
-
function
|
|
5259
|
+
var vn = ["change"];
|
|
5260
|
+
function yn(e) {
|
|
5238
5261
|
return e.value;
|
|
5239
5262
|
}
|
|
5240
|
-
function
|
|
5263
|
+
function bn(e, t) {
|
|
5241
5264
|
let n = t ?? "";
|
|
5242
5265
|
String(e.value ?? "") !== String(n) && (e.value = n);
|
|
5243
5266
|
}
|
|
5244
|
-
function
|
|
5267
|
+
function xn(e, t) {
|
|
5245
5268
|
let n = e || [], r = t || [];
|
|
5246
5269
|
return n.length === r.length && n.every((e, t) => {
|
|
5247
5270
|
let n = r[t];
|
|
@@ -5251,29 +5274,29 @@ function bn(e, t) {
|
|
|
5251
5274
|
return i.length === Object.keys(n).length && i.every((t) => Object.is(e[t], n[t]));
|
|
5252
5275
|
});
|
|
5253
5276
|
}
|
|
5254
|
-
function
|
|
5277
|
+
function Sn(e) {
|
|
5255
5278
|
return e.values;
|
|
5256
5279
|
}
|
|
5257
|
-
function
|
|
5280
|
+
function Cn(e, t) {
|
|
5258
5281
|
let n = t || [], r = e.values || [];
|
|
5259
5282
|
(n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
|
|
5260
5283
|
}
|
|
5261
|
-
function
|
|
5284
|
+
function wn(e) {
|
|
5262
5285
|
return {
|
|
5263
5286
|
start: e.start,
|
|
5264
5287
|
end: e.end
|
|
5265
5288
|
};
|
|
5266
5289
|
}
|
|
5267
|
-
function
|
|
5290
|
+
function Tn(e, t) {
|
|
5268
5291
|
if (t === void 0) return;
|
|
5269
5292
|
let n = Number.parseFloat(t);
|
|
5270
5293
|
Number.isFinite(n) && e.value !== n && (e.value = n);
|
|
5271
5294
|
}
|
|
5272
5295
|
//#endregion
|
|
5273
5296
|
//#region src/components/AppAutocomplete.jsx
|
|
5274
|
-
var
|
|
5297
|
+
var En = 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) {
|
|
5275
5298
|
I("AppAutocomplete", x);
|
|
5276
|
-
let C = typeof r == "function", w = s(), D = p || w, { setRef: O, innerRef: k } =
|
|
5299
|
+
let C = typeof r == "function", w = s(), D = p || w, { setRef: O, innerRef: k } = _n({
|
|
5277
5300
|
ref: S,
|
|
5278
5301
|
value: e ?? "",
|
|
5279
5302
|
on: { change: (e) => t?.(e.currentTarget.value, { isCustom: !!e.detail?.isCustom }) }
|
|
@@ -5282,7 +5305,7 @@ var Tn = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
5282
5305
|
let e = k.current;
|
|
5283
5306
|
if (!e || C) return;
|
|
5284
5307
|
let t = n || [];
|
|
5285
|
-
|
|
5308
|
+
xn(t, e.options) || (e.options = t);
|
|
5286
5309
|
}, [
|
|
5287
5310
|
n,
|
|
5288
5311
|
C,
|
|
@@ -5318,7 +5341,7 @@ var Tn = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
5318
5341
|
children: [
|
|
5319
5342
|
m,
|
|
5320
5343
|
_ && /* @__PURE__ */ T(Q, {}),
|
|
5321
|
-
v && /* @__PURE__ */ T(
|
|
5344
|
+
v && /* @__PURE__ */ T(gn, {
|
|
5322
5345
|
label: y,
|
|
5323
5346
|
children: v
|
|
5324
5347
|
})
|
|
@@ -5352,14 +5375,14 @@ var Tn = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
5352
5375
|
}) : null
|
|
5353
5376
|
]
|
|
5354
5377
|
});
|
|
5355
|
-
}),
|
|
5378
|
+
}), Dn = /* @__PURE__ */ new Set([
|
|
5356
5379
|
"xs",
|
|
5357
5380
|
"sm",
|
|
5358
5381
|
"md",
|
|
5359
5382
|
"lg",
|
|
5360
5383
|
"xl",
|
|
5361
5384
|
"2xl"
|
|
5362
|
-
]),
|
|
5385
|
+
]), On = {
|
|
5363
5386
|
xs: 20,
|
|
5364
5387
|
sm: 24,
|
|
5365
5388
|
md: 32,
|
|
@@ -5367,30 +5390,30 @@ var Tn = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
5367
5390
|
xl: 64,
|
|
5368
5391
|
"2xl": 96
|
|
5369
5392
|
};
|
|
5370
|
-
function
|
|
5393
|
+
function kn(e) {
|
|
5371
5394
|
let t = (e || "").trim();
|
|
5372
5395
|
if (!t) return "?";
|
|
5373
5396
|
let n = t.split(/\s+/).filter(Boolean);
|
|
5374
5397
|
return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
|
|
5375
5398
|
}
|
|
5376
|
-
function
|
|
5399
|
+
function An(e) {
|
|
5377
5400
|
let t = e || "", n = 0;
|
|
5378
5401
|
for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
|
|
5379
5402
|
return n % 360;
|
|
5380
5403
|
}
|
|
5381
|
-
function
|
|
5404
|
+
function jn(e) {
|
|
5382
5405
|
if (typeof e == "number") return e;
|
|
5383
|
-
if (
|
|
5406
|
+
if (On[e] != null) return On[e];
|
|
5384
5407
|
let t = Number.parseInt(e, 10);
|
|
5385
5408
|
return Number.isNaN(t) ? 32 : t;
|
|
5386
5409
|
}
|
|
5387
|
-
function
|
|
5410
|
+
function Mn({ 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: f, onClick: p, linkComponent: m, tooltip: h, tooltipPlacement: g, className: _ = "", ...v }) {
|
|
5388
5411
|
I("AppAvatar", v);
|
|
5389
5412
|
let { style: y, ...b } = v, [x, S] = d(!1);
|
|
5390
5413
|
o(() => {
|
|
5391
5414
|
S(!1);
|
|
5392
5415
|
}, [t]);
|
|
5393
|
-
let C = typeof n == "string" &&
|
|
5416
|
+
let C = typeof n == "string" && Dn.has(n), D = C ? null : typeof n == "number" || /^\d+$/.test(n) ? `${n}px` : n, O = f != null || p != null, k = t != null && t !== "" && !x, A = [
|
|
5394
5417
|
"avatar",
|
|
5395
5418
|
C && n !== "md" ? `avatar-${n}` : "",
|
|
5396
5419
|
r === "circle" ? "" : `avatar-${r}`,
|
|
@@ -5399,16 +5422,16 @@ function jn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
5399
5422
|
O ? "avatar-clickable" : "",
|
|
5400
5423
|
_
|
|
5401
5424
|
].filter(Boolean).join(" "), j = {};
|
|
5402
|
-
D && (j["--avatar-size"] = D), i === "auto" && (j["--avatar-hue"] =
|
|
5425
|
+
D && (j["--avatar-size"] = D), i === "auto" && (j["--avatar-hue"] = An(e));
|
|
5403
5426
|
let M = Object.keys(j).length || y ? {
|
|
5404
5427
|
...j,
|
|
5405
5428
|
...y
|
|
5406
5429
|
} : void 0, N = /* @__PURE__ */ T("span", {
|
|
5407
5430
|
className: "avatar-face",
|
|
5408
5431
|
"aria-hidden": "true",
|
|
5409
|
-
children: l == null ?
|
|
5432
|
+
children: l == null ? kn(e) : /* @__PURE__ */ T(W, {
|
|
5410
5433
|
name: l,
|
|
5411
|
-
size: Math.round(
|
|
5434
|
+
size: Math.round(jn(n) * .55)
|
|
5412
5435
|
})
|
|
5413
5436
|
}), P = /* @__PURE__ */ E(w, { children: [
|
|
5414
5437
|
a !== "none" && /* @__PURE__ */ T("span", {
|
|
@@ -5470,7 +5493,7 @@ function jn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
5470
5493
|
}
|
|
5471
5494
|
//#endregion
|
|
5472
5495
|
//#region src/components/AppAvatarGroup.jsx
|
|
5473
|
-
var
|
|
5496
|
+
var Nn = {
|
|
5474
5497
|
xs: 20,
|
|
5475
5498
|
sm: 24,
|
|
5476
5499
|
md: 32,
|
|
@@ -5478,16 +5501,16 @@ var Mn = {
|
|
|
5478
5501
|
xl: 64,
|
|
5479
5502
|
"2xl": 96
|
|
5480
5503
|
};
|
|
5481
|
-
function
|
|
5482
|
-
return e == null ? null : typeof e == "number" ? `${e}px` :
|
|
5504
|
+
function Pn(e) {
|
|
5505
|
+
return e == null ? null : typeof e == "number" ? `${e}px` : Nn[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${Nn[e]}px`;
|
|
5483
5506
|
}
|
|
5484
|
-
function
|
|
5507
|
+
function Fn({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
|
|
5485
5508
|
I("AppAvatarGroup", a);
|
|
5486
5509
|
let { style: o, ...s } = a, c = [
|
|
5487
5510
|
"avatar-group",
|
|
5488
5511
|
n === "normal" ? "" : `avatar-group-${n}`,
|
|
5489
5512
|
i
|
|
5490
|
-
].filter(Boolean).join(" "), l =
|
|
5513
|
+
].filter(Boolean).join(" "), l = Pn(t), u = l ? {
|
|
5491
5514
|
"--avatar-size": l,
|
|
5492
5515
|
...o
|
|
5493
5516
|
} : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
|
|
@@ -5505,7 +5528,7 @@ function Pn({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
|
|
|
5505
5528
|
}
|
|
5506
5529
|
//#endregion
|
|
5507
5530
|
//#region src/components/AppBadge.jsx
|
|
5508
|
-
function
|
|
5531
|
+
function In({ children: e, tone: t, dot: n = !1, tooltip: r, tooltipPlacement: i, className: a = "", ...o }) {
|
|
5509
5532
|
return I("AppBadge", o), H(/* @__PURE__ */ T(p, {
|
|
5510
5533
|
bg: !1,
|
|
5511
5534
|
className: [
|
|
@@ -5519,18 +5542,18 @@ function Fn({ children: e, tone: t, dot: n = !1, tooltip: r, tooltipPlacement: i
|
|
|
5519
5542
|
}
|
|
5520
5543
|
//#endregion
|
|
5521
5544
|
//#region src/components/AppBanner.jsx
|
|
5522
|
-
var
|
|
5545
|
+
var Ln = [
|
|
5523
5546
|
"info",
|
|
5524
5547
|
"success",
|
|
5525
5548
|
"warning",
|
|
5526
5549
|
"danger",
|
|
5527
5550
|
"neutral"
|
|
5528
5551
|
];
|
|
5529
|
-
function
|
|
5552
|
+
function Rn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
|
|
5530
5553
|
I("AppBanner", o);
|
|
5531
5554
|
let [s, c] = d(!0);
|
|
5532
5555
|
if (!s) return null;
|
|
5533
|
-
let l =
|
|
5556
|
+
let l = Ln.includes(e) ? e : "info", u = () => {
|
|
5534
5557
|
c(!1), i?.();
|
|
5535
5558
|
};
|
|
5536
5559
|
return /* @__PURE__ */ E("div", {
|
|
@@ -5561,7 +5584,7 @@ function Ln({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
|
|
|
5561
5584
|
}
|
|
5562
5585
|
//#endregion
|
|
5563
5586
|
//#region src/components/AppBreadcrumbs.jsx
|
|
5564
|
-
function
|
|
5587
|
+
function zn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
5565
5588
|
return I("AppBreadcrumbs", r), /* @__PURE__ */ T(m, {
|
|
5566
5589
|
className: n || void 0,
|
|
5567
5590
|
...r,
|
|
@@ -5580,17 +5603,17 @@ function Rn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
|
5580
5603
|
}
|
|
5581
5604
|
//#endregion
|
|
5582
5605
|
//#region src/components/AppCallout.jsx
|
|
5583
|
-
var
|
|
5606
|
+
var Bn = {
|
|
5584
5607
|
info: "info",
|
|
5585
5608
|
success: "check",
|
|
5586
5609
|
warning: "alert-triangle",
|
|
5587
5610
|
danger: "x"
|
|
5588
5611
|
};
|
|
5589
|
-
function
|
|
5612
|
+
function Vn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: f = "", ...p }) {
|
|
5590
5613
|
I("AppCallout", p);
|
|
5591
5614
|
let [m, h] = d(!0);
|
|
5592
5615
|
if (!m) return null;
|
|
5593
|
-
let g = r === void 0 ?
|
|
5616
|
+
let g = r === void 0 ? Bn[t] : r === "none" ? null : r, _ = !!i, v = _ || !!g, y = v && !!n && e != null && e !== !1 && e !== "", b = y ? 13 : 11;
|
|
5594
5617
|
return /* @__PURE__ */ E("div", {
|
|
5595
5618
|
className: [
|
|
5596
5619
|
"info-callout",
|
|
@@ -5640,13 +5663,13 @@ function Bn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
|
|
|
5640
5663
|
}
|
|
5641
5664
|
//#endregion
|
|
5642
5665
|
//#region src/components/AppCard.jsx
|
|
5643
|
-
var
|
|
5666
|
+
var Hn = {
|
|
5644
5667
|
xs: 320,
|
|
5645
5668
|
sm: 420,
|
|
5646
5669
|
md: 560,
|
|
5647
5670
|
lg: 720
|
|
5648
5671
|
};
|
|
5649
|
-
function
|
|
5672
|
+
function Un({ 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: _ = "", body: v = !0, lifted: y = !1, href: b, onClick: x, linkComponent: S, ...C }) {
|
|
5650
5673
|
I("AppCard", C);
|
|
5651
5674
|
let { style: D, ...O } = C, k = b != null || x != null, A = [
|
|
5652
5675
|
u && u !== "default" ? `card-${u}` : "",
|
|
@@ -5656,7 +5679,7 @@ function Hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
|
|
|
5656
5679
|
p == null ? "" : "card-constrained",
|
|
5657
5680
|
k ? "card-clickable" : "",
|
|
5658
5681
|
m
|
|
5659
|
-
].filter(Boolean).join(" ") || void 0, j = p == null ? void 0 :
|
|
5682
|
+
].filter(Boolean).join(" ") || void 0, j = p == null ? void 0 : Hn[p] == null ? typeof p == "number" ? `${p}px` : p : `${Hn[p]}px`, M = j ? {
|
|
5660
5683
|
"--card-max-width": j,
|
|
5661
5684
|
...D
|
|
5662
5685
|
} : D, N = {};
|
|
@@ -5727,7 +5750,7 @@ function Hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
|
|
|
5727
5750
|
}
|
|
5728
5751
|
//#endregion
|
|
5729
5752
|
//#region src/lib/CheckField.jsx
|
|
5730
|
-
var
|
|
5753
|
+
var Wn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
|
|
5731
5754
|
let d = s(), f = t || d, p = r ? `${f}-error` : void 0, m = i ? `${f}-hint` : void 0;
|
|
5732
5755
|
return /* @__PURE__ */ E("div", {
|
|
5733
5756
|
className: `${l}${a ? ` ${a}` : ""}`,
|
|
@@ -5758,8 +5781,8 @@ var Un = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
5758
5781
|
}) : null
|
|
5759
5782
|
]
|
|
5760
5783
|
});
|
|
5761
|
-
}),
|
|
5762
|
-
return I("AppCheckbox", o), /* @__PURE__ */ T(
|
|
5784
|
+
}), Gn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
5785
|
+
return I("AppCheckbox", o), /* @__PURE__ */ T(Wn, {
|
|
5763
5786
|
ref: s,
|
|
5764
5787
|
label: e,
|
|
5765
5788
|
id: t,
|
|
@@ -5774,7 +5797,7 @@ var Un = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
5774
5797
|
});
|
|
5775
5798
|
//#endregion
|
|
5776
5799
|
//#region src/components/AppChip.jsx
|
|
5777
|
-
function
|
|
5800
|
+
function Kn({ 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 }) {
|
|
5778
5801
|
I("AppChip", f);
|
|
5779
5802
|
let p = e ?? t, m = [
|
|
5780
5803
|
"chip",
|
|
@@ -5828,7 +5851,7 @@ function Gn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
|
|
|
5828
5851
|
}
|
|
5829
5852
|
//#endregion
|
|
5830
5853
|
//#region src/components/AppChoiceCard.jsx
|
|
5831
|
-
function
|
|
5854
|
+
function qn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s = 18, image: c, imageAlt: l = "", children: u, title: d, description: f, checkIcon: p = "check", checkSize: m = 18, className: h = "", ...g }) {
|
|
5832
5855
|
return I("AppChoiceCard", g), /* @__PURE__ */ E("label", {
|
|
5833
5856
|
className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${h ? ` ${h}` : ""}`,
|
|
5834
5857
|
...g,
|
|
@@ -5877,7 +5900,7 @@ function Kn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
|
|
|
5877
5900
|
}
|
|
5878
5901
|
//#endregion
|
|
5879
5902
|
//#region src/components/AppChoiceChip.jsx
|
|
5880
|
-
function
|
|
5903
|
+
function Jn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
|
|
5881
5904
|
return I("AppChoiceChip", u), /* @__PURE__ */ E("label", {
|
|
5882
5905
|
className: `choice-chip${i ? " checked" : ""}${c === "sm" ? " choice-chip-sm" : c === "lg" ? " choice-chip-lg" : ""}${l ? ` ${l}` : ""}`,
|
|
5883
5906
|
...u,
|
|
@@ -5899,7 +5922,7 @@ function qn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
|
|
|
5899
5922
|
}
|
|
5900
5923
|
//#endregion
|
|
5901
5924
|
//#region src/components/AppColorField.jsx
|
|
5902
|
-
function
|
|
5925
|
+
function Yn({ 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 }) {
|
|
5903
5926
|
I("AppColorField", p);
|
|
5904
5927
|
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" : "";
|
|
5905
5928
|
return /* @__PURE__ */ E("div", {
|
|
@@ -5951,7 +5974,7 @@ function Jn({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
|
|
|
5951
5974
|
}
|
|
5952
5975
|
//#endregion
|
|
5953
5976
|
//#region src/components/AppCompareTable.jsx
|
|
5954
|
-
function
|
|
5977
|
+
function Xn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
|
|
5955
5978
|
I("AppCompareTable", i);
|
|
5956
5979
|
let a = (e) => e === !0 ? /* @__PURE__ */ T("span", {
|
|
5957
5980
|
className: "compare-yes",
|
|
@@ -5988,7 +6011,7 @@ function Yn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
|
|
|
5988
6011
|
}
|
|
5989
6012
|
//#endregion
|
|
5990
6013
|
//#region src/components/AppInput.jsx
|
|
5991
|
-
var
|
|
6014
|
+
var Zn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: f, rightIcon: p, onRightIconClick: m, rightIconLabel: h, unit: g, id: _, name: y, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: D, prefix: O, suffix: k, action: A, floatingLabel: j = !1, variant: M, passwordRequirements: N = !1, requirementsPlacement: P = "auto", ...F }, L) {
|
|
5992
6015
|
I("AppInput", F);
|
|
5993
6016
|
let [R, z] = d(!1), ee = s(), B = _ || ee, V = c === "password", H = V && R ? "text" : c, te = u(null), ne = (e) => {
|
|
5994
6017
|
te.current = e, typeof L == "function" ? L(e) : L && (L.current = e);
|
|
@@ -6044,7 +6067,7 @@ var Xn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
6044
6067
|
placeholder: j ? " " : F.placeholder,
|
|
6045
6068
|
ref: ne,
|
|
6046
6069
|
onInput: le || U ? pe : F.onInput
|
|
6047
|
-
}), be = N === !0 || N, xe = be && typeof be == "object" && be.title || "Password Requirements", G = U ?
|
|
6070
|
+
}), be = N === !0 || N, xe = be && typeof be == "object" && be.title || "Password Requirements", G = U ? fn(ue, be) : null, Se = U ? /* @__PURE__ */ T("ul", {
|
|
6048
6071
|
className: "pw-criteria",
|
|
6049
6072
|
"aria-live": "polite",
|
|
6050
6073
|
children: G.map((e) => /* @__PURE__ */ E("li", {
|
|
@@ -6140,7 +6163,7 @@ var Xn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
6140
6163
|
})
|
|
6141
6164
|
]
|
|
6142
6165
|
});
|
|
6143
|
-
Ce = U ? /* @__PURE__ */ T(
|
|
6166
|
+
Ce = U ? /* @__PURE__ */ T(hn, {
|
|
6144
6167
|
trigger: e,
|
|
6145
6168
|
triggerType: "focus",
|
|
6146
6169
|
placement: P,
|
|
@@ -6194,7 +6217,7 @@ var Xn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
6194
6217
|
children: [
|
|
6195
6218
|
e,
|
|
6196
6219
|
t && /* @__PURE__ */ T(Q, {}),
|
|
6197
|
-
i && /* @__PURE__ */ T(
|
|
6220
|
+
i && /* @__PURE__ */ T(gn, {
|
|
6198
6221
|
label: a,
|
|
6199
6222
|
children: i
|
|
6200
6223
|
})
|
|
@@ -6216,34 +6239,34 @@ var Xn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
6216
6239
|
})
|
|
6217
6240
|
]
|
|
6218
6241
|
});
|
|
6219
|
-
}),
|
|
6242
|
+
}), Qn = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", $n = {
|
|
6220
6243
|
sm: 380,
|
|
6221
6244
|
md: 440,
|
|
6222
6245
|
lg: 640,
|
|
6223
6246
|
xl: 880
|
|
6224
|
-
},
|
|
6225
|
-
function
|
|
6247
|
+
}, er = !1;
|
|
6248
|
+
function tr() {
|
|
6226
6249
|
let e = !0;
|
|
6227
6250
|
try {
|
|
6228
6251
|
e = process.env.NODE_ENV !== "production";
|
|
6229
6252
|
} catch {
|
|
6230
6253
|
e = !0;
|
|
6231
6254
|
}
|
|
6232
|
-
!e ||
|
|
6255
|
+
!e || er || (er = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
|
|
6233
6256
|
}
|
|
6234
|
-
function
|
|
6235
|
-
I("AppModal", v), z("AppModal", "size", typeof d == "string" ? d : null, Object.keys(
|
|
6257
|
+
function nr({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: d = "md", placement: f = "center", hideHeader: p = !1, staticBackdrop: m = !1, ariaLabel: h, className: g = "", children: _, ...v }) {
|
|
6258
|
+
I("AppModal", v), z("AppModal", "size", typeof d == "string" ? d : null, Object.keys($n));
|
|
6236
6259
|
let { style: b, ...x } = v;
|
|
6237
|
-
p && !h && typeof n != "string" &&
|
|
6260
|
+
p && !h && typeof n != "string" && tr();
|
|
6238
6261
|
let S = u(null);
|
|
6239
6262
|
o(() => {
|
|
6240
6263
|
if (!e) return;
|
|
6241
6264
|
let t = S.current?.closest(".modal-content");
|
|
6242
6265
|
if (!t) return;
|
|
6243
|
-
let n = () => Array.from(t.querySelectorAll(
|
|
6266
|
+
let n = () => Array.from(t.querySelectorAll(Qn));
|
|
6244
6267
|
(t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
|
|
6245
6268
|
}, [e]);
|
|
6246
|
-
let C = typeof d == "number" ? d :
|
|
6269
|
+
let C = typeof d == "number" ? d : $n[d] ?? $n.md, w = [
|
|
6247
6270
|
"wui-modal",
|
|
6248
6271
|
a === "default" ? "" : `tone-${a}`,
|
|
6249
6272
|
g
|
|
@@ -6328,60 +6351,67 @@ function tr({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
|
|
|
6328
6351
|
}
|
|
6329
6352
|
//#endregion
|
|
6330
6353
|
//#region src/components/ModalIcons.jsx
|
|
6331
|
-
var
|
|
6354
|
+
var rr = (e) => function({ size: t = 72 }) {
|
|
6332
6355
|
return /* @__PURE__ */ T("wui-status-icon", {
|
|
6333
6356
|
tone: e,
|
|
6334
6357
|
size: t
|
|
6335
6358
|
});
|
|
6336
|
-
},
|
|
6337
|
-
success:
|
|
6338
|
-
error:
|
|
6339
|
-
warning:
|
|
6340
|
-
info:
|
|
6341
|
-
delete:
|
|
6359
|
+
}, ir = {
|
|
6360
|
+
success: rr("success"),
|
|
6361
|
+
error: rr("error"),
|
|
6362
|
+
warning: rr("warning"),
|
|
6363
|
+
info: rr("info"),
|
|
6364
|
+
delete: rr("delete")
|
|
6342
6365
|
};
|
|
6343
6366
|
//#endregion
|
|
6344
6367
|
//#region src/components/AppConfirmDialog.jsx
|
|
6345
|
-
function
|
|
6346
|
-
I("AppConfirmDialog",
|
|
6347
|
-
let [
|
|
6368
|
+
function ar({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, image: c, confirmPhrase: l, onConfirm: u, onClose: f, loading: p = !1, staticBackdrop: m = !1, placement: h = "center", size: g = "md", className: _ = "", ...v }) {
|
|
6369
|
+
I("AppConfirmDialog", v);
|
|
6370
|
+
let [y, b] = d("");
|
|
6348
6371
|
if (o(() => {
|
|
6349
|
-
e ||
|
|
6372
|
+
e || b("");
|
|
6350
6373
|
}, [e]), !e) return null;
|
|
6351
|
-
let
|
|
6352
|
-
|
|
6374
|
+
let x = !!l && y.trim() !== l, S = c ? null : ir[s || (a ? "delete" : "info")], C = () => {
|
|
6375
|
+
p || f?.();
|
|
6353
6376
|
};
|
|
6354
|
-
return /* @__PURE__ */ T(
|
|
6355
|
-
...
|
|
6377
|
+
return /* @__PURE__ */ T(nr, {
|
|
6378
|
+
...v,
|
|
6356
6379
|
open: e,
|
|
6357
6380
|
hideHeader: !0,
|
|
6358
6381
|
title: t,
|
|
6359
|
-
onClose:
|
|
6360
|
-
staticBackdrop:
|
|
6361
|
-
placement:
|
|
6362
|
-
size:
|
|
6363
|
-
className: ["wui-confirm",
|
|
6382
|
+
onClose: C,
|
|
6383
|
+
staticBackdrop: m,
|
|
6384
|
+
placement: h,
|
|
6385
|
+
size: g,
|
|
6386
|
+
className: ["wui-confirm", _].filter(Boolean).join(" "),
|
|
6364
6387
|
footer: /* @__PURE__ */ E("div", {
|
|
6365
6388
|
className: "wui-confirm-actions",
|
|
6366
6389
|
children: [/* @__PURE__ */ T(ke, {
|
|
6367
6390
|
variant: "secondary",
|
|
6368
|
-
disabled:
|
|
6369
|
-
onClick:
|
|
6391
|
+
disabled: p,
|
|
6392
|
+
onClick: C,
|
|
6370
6393
|
children: i
|
|
6371
6394
|
}), /* @__PURE__ */ T(ke, {
|
|
6372
6395
|
variant: a ? "danger" : "primary",
|
|
6373
|
-
disabled:
|
|
6374
|
-
loading:
|
|
6375
|
-
onClick:
|
|
6396
|
+
disabled: x,
|
|
6397
|
+
loading: p,
|
|
6398
|
+
onClick: u,
|
|
6376
6399
|
children: r
|
|
6377
6400
|
})]
|
|
6378
6401
|
}),
|
|
6379
6402
|
children: /* @__PURE__ */ E("div", {
|
|
6380
6403
|
className: "wui-confirm-content",
|
|
6381
6404
|
children: [
|
|
6382
|
-
|
|
6405
|
+
c ? /* @__PURE__ */ T("span", {
|
|
6406
|
+
className: "wui-confirm-icon",
|
|
6407
|
+
children: /* @__PURE__ */ T("img", {
|
|
6408
|
+
src: c,
|
|
6409
|
+
alt: "",
|
|
6410
|
+
"aria-hidden": "true"
|
|
6411
|
+
})
|
|
6412
|
+
}) : S && /* @__PURE__ */ T("span", {
|
|
6383
6413
|
className: "wui-confirm-icon",
|
|
6384
|
-
children: /* @__PURE__ */ T(
|
|
6414
|
+
children: /* @__PURE__ */ T(S, { size: 80 })
|
|
6385
6415
|
}),
|
|
6386
6416
|
/* @__PURE__ */ T("h3", {
|
|
6387
6417
|
className: "wui-confirm-title",
|
|
@@ -6393,17 +6423,17 @@ function ir({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
6393
6423
|
className: "wui-confirm-msg",
|
|
6394
6424
|
children: n
|
|
6395
6425
|
}),
|
|
6396
|
-
|
|
6426
|
+
l && /* @__PURE__ */ T(Zn, {
|
|
6397
6427
|
fieldClassName: "mt-3 mb-0 w-100 text-start",
|
|
6398
6428
|
label: /* @__PURE__ */ E(w, { children: [
|
|
6399
6429
|
"Type ",
|
|
6400
|
-
/* @__PURE__ */ T("strong", { children:
|
|
6430
|
+
/* @__PURE__ */ T("strong", { children: l }),
|
|
6401
6431
|
" to confirm"
|
|
6402
6432
|
] }),
|
|
6403
|
-
value:
|
|
6404
|
-
onChange: (e) =>
|
|
6405
|
-
"aria-label": `Type ${
|
|
6406
|
-
disabled:
|
|
6433
|
+
value: y,
|
|
6434
|
+
onChange: (e) => b(e.target.value),
|
|
6435
|
+
"aria-label": `Type ${l} to confirm`,
|
|
6436
|
+
disabled: p
|
|
6407
6437
|
})
|
|
6408
6438
|
]
|
|
6409
6439
|
})
|
|
@@ -6411,22 +6441,22 @@ function ir({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
6411
6441
|
}
|
|
6412
6442
|
//#endregion
|
|
6413
6443
|
//#region src/components/AppCopyButton.jsx
|
|
6414
|
-
var
|
|
6444
|
+
var or = {
|
|
6415
6445
|
sm: 14,
|
|
6416
6446
|
md: 16,
|
|
6417
6447
|
lg: 20
|
|
6418
6448
|
};
|
|
6419
|
-
function
|
|
6420
|
-
I("AppCopyButton", m), z("AppCopyButton", "size", i, Object.keys(
|
|
6449
|
+
function sr({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: s = "ghost", onCopied: c, className: l = "", tooltip: f, tooltipPlacement: p, ...m }) {
|
|
6450
|
+
I("AppCopyButton", m), z("AppCopyButton", "size", i, Object.keys(or));
|
|
6421
6451
|
let [h, g] = d(!1), _ = u(null);
|
|
6422
6452
|
o(() => () => clearTimeout(_.current), []);
|
|
6423
6453
|
let v = a(async () => {
|
|
6424
|
-
await
|
|
6454
|
+
await Zt(e) && (g(!0), clearTimeout(_.current), _.current = setTimeout(() => g(!1), Xt), c?.());
|
|
6425
6455
|
}, [e, c]), y = h ? n : t, b = h ? "check" : "files";
|
|
6426
6456
|
return H(r ? /* @__PURE__ */ T(Se, {
|
|
6427
6457
|
icon: b,
|
|
6428
6458
|
label: y,
|
|
6429
|
-
size:
|
|
6459
|
+
size: or[i] ?? or.md,
|
|
6430
6460
|
onClick: v,
|
|
6431
6461
|
className: l,
|
|
6432
6462
|
...m
|
|
@@ -6443,7 +6473,7 @@ function or({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
|
|
|
6443
6473
|
}
|
|
6444
6474
|
//#endregion
|
|
6445
6475
|
//#region src/components/AppSkeleton.jsx
|
|
6446
|
-
function
|
|
6476
|
+
function cr({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
|
|
6447
6477
|
return I("AppSkeleton", a), /* @__PURE__ */ T("span", {
|
|
6448
6478
|
className: `skeleton${r ? ` ${r}` : ""}`,
|
|
6449
6479
|
"aria-hidden": "true",
|
|
@@ -6456,30 +6486,30 @@ function sr({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
|
|
|
6456
6486
|
...a
|
|
6457
6487
|
});
|
|
6458
6488
|
}
|
|
6459
|
-
function
|
|
6460
|
-
return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ T("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ T("td", { children: /* @__PURE__ */ T(
|
|
6489
|
+
function lr({ rows: e = 4, cols: t = 5 }) {
|
|
6490
|
+
return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ T("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ T("td", { children: /* @__PURE__ */ T(cr, {
|
|
6461
6491
|
width: t === 0 ? "70%" : "50%",
|
|
6462
6492
|
height: 12
|
|
6463
6493
|
}) }, `col-${t}`)) }, `row-${n}`));
|
|
6464
6494
|
}
|
|
6465
6495
|
//#endregion
|
|
6466
6496
|
//#region src/lib/pageWindow.js
|
|
6467
|
-
var
|
|
6497
|
+
var ur = (e, t) => {
|
|
6468
6498
|
let n = [];
|
|
6469
6499
|
for (let r = e; r <= t; r += 1) n.push(r);
|
|
6470
6500
|
return n;
|
|
6471
6501
|
};
|
|
6472
|
-
function
|
|
6502
|
+
function dr(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
|
|
6473
6503
|
let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
|
|
6474
|
-
if (i <= n * 2 + 3 + r * 2) return
|
|
6475
|
-
let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u =
|
|
6476
|
-
return u.push(...c ? ["ellipsis-left"] :
|
|
6504
|
+
if (i <= n * 2 + 3 + r * 2) return ur(1, i);
|
|
6505
|
+
let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = ur(1, r);
|
|
6506
|
+
return u.push(...c ? ["ellipsis-left"] : ur(r + 1, o - 1)), u.push(...ur(o, s)), u.push(...l ? ["ellipsis-right"] : ur(s + 1, i - r)), u.push(...ur(i - r + 1, i)), u;
|
|
6477
6507
|
}
|
|
6478
6508
|
//#endregion
|
|
6479
6509
|
//#region src/components/AppSelectMini.jsx
|
|
6480
|
-
function
|
|
6510
|
+
function fr({ 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 }) {
|
|
6481
6511
|
I("AppSelectMini", p);
|
|
6482
|
-
let { setRef: m, innerRef: h } =
|
|
6512
|
+
let { setRef: m, innerRef: h } = _n({
|
|
6483
6513
|
value: e ?? "",
|
|
6484
6514
|
onChange: t
|
|
6485
6515
|
});
|
|
@@ -6491,7 +6521,7 @@ function dr({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
|
|
|
6491
6521
|
label: e.label ?? e.text ?? "",
|
|
6492
6522
|
icon: e.icon
|
|
6493
6523
|
}));
|
|
6494
|
-
|
|
6524
|
+
xn(t, e.options) || (e.options = t);
|
|
6495
6525
|
}, [n, h]), o(() => {
|
|
6496
6526
|
let e = h.current;
|
|
6497
6527
|
if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
@@ -6514,22 +6544,22 @@ function dr({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
|
|
|
6514
6544
|
}
|
|
6515
6545
|
//#endregion
|
|
6516
6546
|
//#region src/components/AppTablePagination.jsx
|
|
6517
|
-
var
|
|
6547
|
+
var pr = [
|
|
6518
6548
|
5,
|
|
6519
6549
|
10,
|
|
6520
6550
|
25,
|
|
6521
6551
|
50
|
|
6522
6552
|
];
|
|
6523
|
-
function
|
|
6553
|
+
function mr({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = pr, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
|
|
6524
6554
|
I("AppTablePagination", f);
|
|
6525
|
-
let p = l === "numbered", m = p ?
|
|
6555
|
+
let p = l === "numbered", m = p ? dr(e, t) : null;
|
|
6526
6556
|
return /* @__PURE__ */ E("div", {
|
|
6527
6557
|
className: `table-pagination${d ? ` ${d}` : ""}`,
|
|
6528
6558
|
...f,
|
|
6529
6559
|
children: [
|
|
6530
6560
|
u && /* @__PURE__ */ E("span", {
|
|
6531
6561
|
className: "tpg-rows",
|
|
6532
|
-
children: ["Rows per page:", /* @__PURE__ */ T(
|
|
6562
|
+
children: ["Rows per page:", /* @__PURE__ */ T(fr, {
|
|
6533
6563
|
value: n,
|
|
6534
6564
|
onChange: (e) => s(Number(e)),
|
|
6535
6565
|
ariaLabel: "Rows per page",
|
|
@@ -6593,13 +6623,13 @@ function pr({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
6593
6623
|
}
|
|
6594
6624
|
//#endregion
|
|
6595
6625
|
//#region src/components/AppDataTable.jsx
|
|
6596
|
-
function
|
|
6626
|
+
function hr(e) {
|
|
6597
6627
|
return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
|
|
6598
6628
|
}
|
|
6599
|
-
function
|
|
6629
|
+
function gr(e) {
|
|
6600
6630
|
return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
|
|
6601
6631
|
}
|
|
6602
|
-
function
|
|
6632
|
+
function _r({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: o = !1, skeletonRows: s = 5, empty: c = "No records found.", emptyFiltered: l, sourceCount: u, rowActions: f, rowActionsLabel: p, pagination: m, ariaLabel: h, className: g = "", wrapperClassName: _ = "", selectable: v = !1, selectedIds: y, onToggleRow: b, onToggleAll: x, renderExpanded: S, ...C }) {
|
|
6603
6633
|
I("AppDataTable", C);
|
|
6604
6634
|
let D = typeof S == "function", [O, k] = d(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
|
|
6605
6635
|
let n = new Set(t);
|
|
@@ -6636,7 +6666,7 @@ function gr({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6636
6666
|
e.map((e, t) => {
|
|
6637
6667
|
let n = !!(e.sortable && a), r = i && i.key === e.key;
|
|
6638
6668
|
return /* @__PURE__ */ E("th", {
|
|
6639
|
-
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") +
|
|
6669
|
+
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + hr(e.align),
|
|
6640
6670
|
style: e.width ? { width: e.width } : void 0,
|
|
6641
6671
|
tabIndex: n ? 0 : void 0,
|
|
6642
6672
|
"aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
|
|
@@ -6663,7 +6693,7 @@ function gr({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6663
6693
|
children: "Actions"
|
|
6664
6694
|
})
|
|
6665
6695
|
}))
|
|
6666
|
-
] }) }), /* @__PURE__ */ T("tbody", { children: o ? /* @__PURE__ */ T(
|
|
6696
|
+
] }) }), /* @__PURE__ */ T("tbody", { children: o ? /* @__PURE__ */ T(lr, {
|
|
6667
6697
|
rows: s,
|
|
6668
6698
|
cols: j
|
|
6669
6699
|
}) : n?.length ? n.map((n, i) => {
|
|
@@ -6697,9 +6727,9 @@ function gr({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6697
6727
|
})
|
|
6698
6728
|
}),
|
|
6699
6729
|
e.map((e, t) => /* @__PURE__ */ T("td", {
|
|
6700
|
-
className: (t === 0 ? "wui-name-cell " : "") +
|
|
6730
|
+
className: (t === 0 ? "wui-name-cell " : "") + hr(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
|
|
6701
6731
|
style: e.cellStyle,
|
|
6702
|
-
children: e.render ? e.render(n) :
|
|
6732
|
+
children: e.render ? e.render(n) : gr(n[e.key])
|
|
6703
6733
|
}, e.key)),
|
|
6704
6734
|
f && /* @__PURE__ */ T("td", { children: /* @__PURE__ */ T("div", {
|
|
6705
6735
|
className: "u-row-actions",
|
|
@@ -6722,7 +6752,7 @@ function gr({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6722
6752
|
children: L
|
|
6723
6753
|
}) : L
|
|
6724
6754
|
})]
|
|
6725
|
-
}), m && !o && m.total > 0 && /* @__PURE__ */ T(
|
|
6755
|
+
}), m && !o && m.total > 0 && /* @__PURE__ */ T(mr, {
|
|
6726
6756
|
page: m.page,
|
|
6727
6757
|
totalPages: m.totalPages,
|
|
6728
6758
|
pageSize: m.pageSize,
|
|
@@ -6735,9 +6765,9 @@ function gr({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6735
6765
|
}
|
|
6736
6766
|
//#endregion
|
|
6737
6767
|
//#region src/components/AppDatePicker.jsx
|
|
6738
|
-
var
|
|
6768
|
+
var vr = 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) {
|
|
6739
6769
|
I("AppDatePicker", v);
|
|
6740
|
-
let b = s(), x = m || b, { setRef: S } =
|
|
6770
|
+
let b = s(), x = m || b, { setRef: S } = _n({
|
|
6741
6771
|
ref: y,
|
|
6742
6772
|
value: e ?? "",
|
|
6743
6773
|
onChange: t
|
|
@@ -6779,9 +6809,9 @@ var _r = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
6779
6809
|
})
|
|
6780
6810
|
]
|
|
6781
6811
|
});
|
|
6782
|
-
}),
|
|
6812
|
+
}), yr = 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) {
|
|
6783
6813
|
I("AppDateRangePicker", x);
|
|
6784
|
-
let C = s(), w = _ || C, { setRef: D, innerRef: O } =
|
|
6814
|
+
let C = s(), w = _ || C, { setRef: D, innerRef: O } = _n({
|
|
6785
6815
|
ref: S,
|
|
6786
6816
|
onChange: n
|
|
6787
6817
|
});
|
|
@@ -6840,12 +6870,12 @@ var _r = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
6840
6870
|
});
|
|
6841
6871
|
//#endregion
|
|
6842
6872
|
//#region src/lib/emptyValue.js
|
|
6843
|
-
function
|
|
6873
|
+
function br(e) {
|
|
6844
6874
|
return e == null || e === "";
|
|
6845
6875
|
}
|
|
6846
6876
|
//#endregion
|
|
6847
6877
|
//#region src/components/AppDescriptions.jsx
|
|
6848
|
-
function
|
|
6878
|
+
function xr({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
|
|
6849
6879
|
return I("AppDescriptions", o), /* @__PURE__ */ E("div", {
|
|
6850
6880
|
className: [
|
|
6851
6881
|
"descs",
|
|
@@ -6861,7 +6891,7 @@ function br({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
6861
6891
|
}), /* @__PURE__ */ T("dl", {
|
|
6862
6892
|
className: "descs-list",
|
|
6863
6893
|
children: e.map((e, t) => {
|
|
6864
|
-
let n =
|
|
6894
|
+
let n = br(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
|
|
6865
6895
|
return /* @__PURE__ */ E("div", {
|
|
6866
6896
|
className: "descs-item",
|
|
6867
6897
|
style: { "--descs-span": r },
|
|
@@ -6879,18 +6909,18 @@ function br({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
6879
6909
|
}
|
|
6880
6910
|
//#endregion
|
|
6881
6911
|
//#region src/components/AppDropdown.jsx
|
|
6882
|
-
var
|
|
6883
|
-
function
|
|
6912
|
+
var Sr = !1;
|
|
6913
|
+
function Cr() {
|
|
6884
6914
|
let e = !0;
|
|
6885
6915
|
try {
|
|
6886
6916
|
e = process.env.NODE_ENV !== "production";
|
|
6887
6917
|
} catch {
|
|
6888
6918
|
e = !0;
|
|
6889
6919
|
}
|
|
6890
|
-
!e ||
|
|
6920
|
+
!e || Sr || (Sr = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
|
|
6891
6921
|
}
|
|
6892
|
-
function
|
|
6893
|
-
I("AppDropdown", p), !f && !i && !r &&
|
|
6922
|
+
function wr({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: s = [], menuClassName: c = "", linkComponent: l, children: u, trigger: f, ...p }) {
|
|
6923
|
+
I("AppDropdown", p), !f && !i && !r && Cr();
|
|
6894
6924
|
let m = n ?? (f ? "wui-dropdown-trigger" : "topbar-icon-btn"), [h, g] = d(!1);
|
|
6895
6925
|
return o(() => {
|
|
6896
6926
|
if (!h) return;
|
|
@@ -6907,7 +6937,7 @@ function Cr({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
6907
6937
|
onToggle: (e) => g(e),
|
|
6908
6938
|
...p,
|
|
6909
6939
|
children: [/* @__PURE__ */ T(_.Toggle, {
|
|
6910
|
-
as:
|
|
6940
|
+
as: Tr,
|
|
6911
6941
|
icon: e,
|
|
6912
6942
|
iconSize: t,
|
|
6913
6943
|
btnClassName: m,
|
|
@@ -6943,7 +6973,7 @@ function Cr({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
6943
6973
|
})]
|
|
6944
6974
|
});
|
|
6945
6975
|
}
|
|
6946
|
-
var
|
|
6976
|
+
var Tr = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
|
|
6947
6977
|
return /* @__PURE__ */ T("button", {
|
|
6948
6978
|
ref: s,
|
|
6949
6979
|
type: "button",
|
|
@@ -6958,9 +6988,9 @@ var wr = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
|
|
|
6958
6988
|
});
|
|
6959
6989
|
//#endregion
|
|
6960
6990
|
//#region src/components/AppFeedback.jsx
|
|
6961
|
-
function
|
|
6991
|
+
function Er({ onSubmit: e, surface: t, screen: n, heading: r = "Share feedback", label: i = "Feedback", placeholder: a, collectEmail: o = !1, position: s = "bottom-right", className: c = "", style: l, ...u }) {
|
|
6962
6992
|
I("AppFeedback", u);
|
|
6963
|
-
let { setRef: d, innerRef: f } =
|
|
6993
|
+
let { setRef: d, innerRef: f } = _n({ on: { "wui-feedback-submit": (t) => {
|
|
6964
6994
|
let n = f.current;
|
|
6965
6995
|
n && Promise.resolve(e?.(t.detail)).then(() => n.submitted(), (e) => n.failed(typeof e?.userMessage == "string" ? e.userMessage : void 0));
|
|
6966
6996
|
} } });
|
|
@@ -6980,16 +7010,16 @@ function Tr({ onSubmit: e, surface: t, screen: n, heading: r = "Share feedback",
|
|
|
6980
7010
|
}
|
|
6981
7011
|
//#endregion
|
|
6982
7012
|
//#region src/lib/fileItem.js
|
|
6983
|
-
function
|
|
7013
|
+
function Dr(e) {
|
|
6984
7014
|
return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
|
|
6985
7015
|
}
|
|
6986
|
-
function
|
|
7016
|
+
function Or(e) {
|
|
6987
7017
|
return e instanceof File ? e.name : e?.name;
|
|
6988
7018
|
}
|
|
6989
|
-
function
|
|
7019
|
+
function kr(e) {
|
|
6990
7020
|
return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
|
|
6991
7021
|
}
|
|
6992
|
-
function
|
|
7022
|
+
function Ar(e, t) {
|
|
6993
7023
|
let [n, r] = d(null);
|
|
6994
7024
|
return o(() => {
|
|
6995
7025
|
if (!t) {
|
|
@@ -7005,8 +7035,8 @@ function kr(e, t) {
|
|
|
7005
7035
|
}
|
|
7006
7036
|
//#endregion
|
|
7007
7037
|
//#region src/lib/FileItemRow.jsx
|
|
7008
|
-
function
|
|
7009
|
-
let i =
|
|
7038
|
+
function jr({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
7039
|
+
let i = Ar(e, t), a = Or(e), o = kr(e);
|
|
7010
7040
|
return /* @__PURE__ */ E("div", {
|
|
7011
7041
|
className: "attach-item",
|
|
7012
7042
|
children: [
|
|
@@ -7045,15 +7075,15 @@ function Ar({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
|
7045
7075
|
}
|
|
7046
7076
|
//#endregion
|
|
7047
7077
|
//#region src/components/AppFileAttachment.jsx
|
|
7048
|
-
function
|
|
7078
|
+
function Mr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Qt, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...f }) {
|
|
7049
7079
|
I("AppFileAttachment", f);
|
|
7050
|
-
let p = s(), m = u || p, [h, g] = d(""), _ = i && Array.isArray(t) ? t : t ? [t] : [], v =
|
|
7080
|
+
let p = s(), m = u || p, [h, g] = d(""), _ = i && Array.isArray(t) ? t : t ? [t] : [], v = an(a), y = (e) => e instanceof File ? rn(e) : v || rn(e), b = !i && _.length === 1 && y(_[0]);
|
|
7051
7081
|
function x(e) {
|
|
7052
7082
|
let n = Array.from(e.target.files || []);
|
|
7053
7083
|
if (e.target.value = "", !n.length) return;
|
|
7054
7084
|
let s = [], c = "";
|
|
7055
7085
|
for (let e of n) {
|
|
7056
|
-
let t =
|
|
7086
|
+
let t = cn(e, {
|
|
7057
7087
|
accept: a,
|
|
7058
7088
|
maxSizeMb: o
|
|
7059
7089
|
});
|
|
@@ -7064,8 +7094,8 @@ function jr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
7064
7094
|
s.push(e);
|
|
7065
7095
|
}
|
|
7066
7096
|
if (g(c), s.length) if (i) {
|
|
7067
|
-
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(
|
|
7068
|
-
r(e.concat(s.filter((e) => !n.has(
|
|
7097
|
+
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Dr));
|
|
7098
|
+
r(e.concat(s.filter((e) => !n.has(Dr(e)))));
|
|
7069
7099
|
} else r(s[0]);
|
|
7070
7100
|
}
|
|
7071
7101
|
function S(e) {
|
|
@@ -7102,7 +7132,7 @@ function jr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
7102
7132
|
}), /* @__PURE__ */ E("span", {
|
|
7103
7133
|
className: "attach-drop-hint",
|
|
7104
7134
|
children: [
|
|
7105
|
-
|
|
7135
|
+
on(a),
|
|
7106
7136
|
", up to ",
|
|
7107
7137
|
o,
|
|
7108
7138
|
" MB"
|
|
@@ -7125,17 +7155,17 @@ function jr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
7125
7155
|
onChange: x,
|
|
7126
7156
|
...f
|
|
7127
7157
|
})] }),
|
|
7128
|
-
b ? /* @__PURE__ */ T(
|
|
7158
|
+
b ? /* @__PURE__ */ T(Nr, {
|
|
7129
7159
|
item: _[0],
|
|
7130
7160
|
isImage: !0,
|
|
7131
7161
|
onRemove: () => S(0)
|
|
7132
7162
|
}) : _.length > 0 && /* @__PURE__ */ T("div", {
|
|
7133
7163
|
className: "attach-list",
|
|
7134
|
-
children: _.map((e, t) => /* @__PURE__ */ T(
|
|
7164
|
+
children: _.map((e, t) => /* @__PURE__ */ T(jr, {
|
|
7135
7165
|
item: e,
|
|
7136
7166
|
isImage: y(e),
|
|
7137
7167
|
onRemove: () => S(t)
|
|
7138
|
-
},
|
|
7168
|
+
}, Dr(e)))
|
|
7139
7169
|
}),
|
|
7140
7170
|
C && /* @__PURE__ */ T("div", {
|
|
7141
7171
|
className: "field-error",
|
|
@@ -7145,8 +7175,8 @@ function jr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
7145
7175
|
]
|
|
7146
7176
|
});
|
|
7147
7177
|
}
|
|
7148
|
-
function
|
|
7149
|
-
let r =
|
|
7178
|
+
function Nr({ item: e, isImage: t, onRemove: n }) {
|
|
7179
|
+
let r = Ar(e, t), i = Or(e), a = kr(e);
|
|
7150
7180
|
return /* @__PURE__ */ E("div", {
|
|
7151
7181
|
className: "attach-preview",
|
|
7152
7182
|
children: [/* @__PURE__ */ E("div", {
|
|
@@ -7178,18 +7208,18 @@ function Mr({ item: e, isImage: t, onRemove: n }) {
|
|
|
7178
7208
|
}
|
|
7179
7209
|
//#endregion
|
|
7180
7210
|
//#region src/components/AppFilePicker.jsx
|
|
7181
|
-
function
|
|
7211
|
+
function Pr({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: f = 5, required: p, error: m, className: h = "", fieldClassName: g = "", style: _, ...v }) {
|
|
7182
7212
|
I("AppFilePicker", v);
|
|
7183
7213
|
let [y, b] = d(null), [x, S] = d(!1), [C, w] = d(""), D = u(null), O = s(), k = r || O;
|
|
7184
7214
|
o(() => {
|
|
7185
|
-
if (!a && t instanceof File &&
|
|
7215
|
+
if (!a && t instanceof File && rn(t)) {
|
|
7186
7216
|
let e = URL.createObjectURL(t);
|
|
7187
7217
|
return b(e), () => URL.revokeObjectURL(e);
|
|
7188
7218
|
}
|
|
7189
7219
|
b(null);
|
|
7190
7220
|
}, [t, a]);
|
|
7191
|
-
let A = a ? Array.isArray(t) ? t : t ? [t] : [] : [], j = m || C, M = j ? `${k}-error` : void 0, N =
|
|
7192
|
-
let t =
|
|
7221
|
+
let A = a ? Array.isArray(t) ? t : t ? [t] : [] : [], j = m || C, M = j ? `${k}-error` : void 0, N = an(l), P = !a && !!t, F = P && (t instanceof File ? rn(t) : N || rn(t)), L = t?.name, R = F ? t?.url || y : null, z = F ? "image" : "file", ee = e ? `Change ${e}` : `Change ${z}`, B = e ? `Remove ${e}` : `Remove ${z}`, V = e ? `${e} preview` : `Selected ${z} preview`, H = (e) => {
|
|
7222
|
+
let t = cn(e, {
|
|
7193
7223
|
accept: l,
|
|
7194
7224
|
maxSizeMb: f
|
|
7195
7225
|
});
|
|
@@ -7197,9 +7227,9 @@ function Nr({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
7197
7227
|
}, te = (e) => {
|
|
7198
7228
|
let n = Array.from(e || []);
|
|
7199
7229
|
if (!n.length) return;
|
|
7200
|
-
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(
|
|
7230
|
+
let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(Dr)), o = "", s = [];
|
|
7201
7231
|
for (let e of n) {
|
|
7202
|
-
let t =
|
|
7232
|
+
let t = cn(e, {
|
|
7203
7233
|
accept: l,
|
|
7204
7234
|
maxSizeMb: f
|
|
7205
7235
|
});
|
|
@@ -7207,7 +7237,7 @@ function Nr({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
7207
7237
|
o ||= t;
|
|
7208
7238
|
continue;
|
|
7209
7239
|
}
|
|
7210
|
-
a.has(
|
|
7240
|
+
a.has(Dr(e)) || (a.add(Dr(e)), s.push(e));
|
|
7211
7241
|
}
|
|
7212
7242
|
let u = r.concat(s);
|
|
7213
7243
|
c && u.length > c && (u = u.slice(0, c), o ||= `Up to ${c} files.`), w(o), i(u);
|
|
@@ -7332,7 +7362,7 @@ function Nr({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
7332
7362
|
/* @__PURE__ */ E("span", {
|
|
7333
7363
|
className: "file-input-text",
|
|
7334
7364
|
children: [
|
|
7335
|
-
|
|
7365
|
+
on(l),
|
|
7336
7366
|
" · up to ",
|
|
7337
7367
|
f,
|
|
7338
7368
|
" MB"
|
|
@@ -7343,12 +7373,12 @@ function Nr({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
7343
7373
|
oe,
|
|
7344
7374
|
a && A.length > 0 && /* @__PURE__ */ T("div", {
|
|
7345
7375
|
className: "attach-list",
|
|
7346
|
-
children: A.map((e, t) => /* @__PURE__ */ T(
|
|
7376
|
+
children: A.map((e, t) => /* @__PURE__ */ T(jr, {
|
|
7347
7377
|
item: e,
|
|
7348
|
-
isImage: e instanceof File ?
|
|
7378
|
+
isImage: e instanceof File ? rn(e) : N || rn(e),
|
|
7349
7379
|
noun: "file",
|
|
7350
7380
|
onRemove: () => ie(t)
|
|
7351
|
-
},
|
|
7381
|
+
}, Dr(e)))
|
|
7352
7382
|
})
|
|
7353
7383
|
]
|
|
7354
7384
|
}),
|
|
@@ -7362,7 +7392,7 @@ function Nr({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
|
|
|
7362
7392
|
}
|
|
7363
7393
|
//#endregion
|
|
7364
7394
|
//#region src/components/AppFloatingDock.jsx
|
|
7365
|
-
function
|
|
7395
|
+
function Fr({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
|
|
7366
7396
|
return I("AppFloatingDock", s), /* @__PURE__ */ T("wui-dock", {
|
|
7367
7397
|
role: "navigation",
|
|
7368
7398
|
"aria-label": n,
|
|
@@ -7404,7 +7434,7 @@ function Pr({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
|
|
|
7404
7434
|
}
|
|
7405
7435
|
//#endregion
|
|
7406
7436
|
//#region src/components/AppFormActions.jsx
|
|
7407
|
-
function
|
|
7437
|
+
function Ir({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
|
|
7408
7438
|
return I("AppFormActions", i), /* @__PURE__ */ T("div", {
|
|
7409
7439
|
className: [
|
|
7410
7440
|
"form-actions",
|
|
@@ -7418,7 +7448,7 @@ function Fr({ children: e, sticky: t = !1, align: n = "end", className: r = "",
|
|
|
7418
7448
|
}
|
|
7419
7449
|
//#endregion
|
|
7420
7450
|
//#region src/components/AppFormRow.jsx
|
|
7421
|
-
function
|
|
7451
|
+
function Lr({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
7422
7452
|
I("AppFormRow", r);
|
|
7423
7453
|
let { style: i, ...a } = r;
|
|
7424
7454
|
return /* @__PURE__ */ T("div", {
|
|
@@ -7433,7 +7463,7 @@ function Ir({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
|
7433
7463
|
}
|
|
7434
7464
|
//#endregion
|
|
7435
7465
|
//#region src/components/AppFormSection.jsx
|
|
7436
|
-
function
|
|
7466
|
+
function Rr({ children: e, title: t, description: n, className: r = "", ...i }) {
|
|
7437
7467
|
return I("AppFormSection", i), /* @__PURE__ */ E("section", {
|
|
7438
7468
|
className: ["form-section", r].filter(Boolean).join(" "),
|
|
7439
7469
|
...i,
|
|
@@ -7454,12 +7484,12 @@ function Lr({ children: e, title: t, description: n, className: r = "", ...i })
|
|
|
7454
7484
|
}
|
|
7455
7485
|
//#endregion
|
|
7456
7486
|
//#region src/components/AppInfoList.jsx
|
|
7457
|
-
function
|
|
7487
|
+
function zr({ items: e = [], className: t = "", ...n }) {
|
|
7458
7488
|
return I("AppInfoList", n), /* @__PURE__ */ T("div", {
|
|
7459
7489
|
className: `info-list${t ? ` ${t}` : ""}`,
|
|
7460
7490
|
...n,
|
|
7461
7491
|
children: e.map((e, t) => {
|
|
7462
|
-
let n =
|
|
7492
|
+
let n = br(e.value), r = /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
|
|
7463
7493
|
className: "info-icon",
|
|
7464
7494
|
children: G(e.icon, { size: 16 })
|
|
7465
7495
|
}), /* @__PURE__ */ E("span", {
|
|
@@ -7485,23 +7515,23 @@ function Rr({ items: e = [], className: t = "", ...n }) {
|
|
|
7485
7515
|
}
|
|
7486
7516
|
//#endregion
|
|
7487
7517
|
//#region src/components/AppKpiTile.jsx
|
|
7488
|
-
var
|
|
7489
|
-
function Vr(e) {
|
|
7490
|
-
if (!e || e.length < 2) return `0,${Br / 2} ${zr},${Br / 2}`;
|
|
7491
|
-
let t = Math.min(...e), n = Math.max(...e) - t, r = zr / (e.length - 1);
|
|
7492
|
-
return e.map((e, i) => `${i * r},${n === 0 ? Br / 2 : Br - (e - t) / n * Br}`).join(" ");
|
|
7493
|
-
}
|
|
7518
|
+
var Br = 48, Vr = 16;
|
|
7494
7519
|
function Hr(e) {
|
|
7520
|
+
if (!e || e.length < 2) return `0,${Vr / 2} ${Br},${Vr / 2}`;
|
|
7521
|
+
let t = Math.min(...e), n = Math.max(...e) - t, r = Br / (e.length - 1);
|
|
7522
|
+
return e.map((e, i) => `${i * r},${n === 0 ? Vr / 2 : Vr - (e - t) / n * Vr}`).join(" ");
|
|
7523
|
+
}
|
|
7524
|
+
function Ur(e) {
|
|
7495
7525
|
if (typeof e != "string") return "flat";
|
|
7496
7526
|
let t = e.trim();
|
|
7497
7527
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
7498
7528
|
}
|
|
7499
|
-
function
|
|
7529
|
+
function Wr({ 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 }) {
|
|
7500
7530
|
I("AppKpiTile", C);
|
|
7501
7531
|
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}` : ""}`, D = typeof u == "number" && u > 0 ? {
|
|
7502
7532
|
...g,
|
|
7503
7533
|
"--wui-kpi-value-size": `${u}px`
|
|
7504
|
-
} : g, O = o ??
|
|
7534
|
+
} : g, O = o ?? Ur(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
|
|
7505
7535
|
return p != null && (A = m ? {
|
|
7506
7536
|
as: m,
|
|
7507
7537
|
to: p
|
|
@@ -7539,12 +7569,12 @@ function Ur({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
7539
7569
|
}),
|
|
7540
7570
|
s && s.length > 0 && /* @__PURE__ */ T("svg", {
|
|
7541
7571
|
className: `kpi-sparkline${S ? ` ${S}` : ""}`,
|
|
7542
|
-
width:
|
|
7543
|
-
height:
|
|
7544
|
-
viewBox: `0 0 ${
|
|
7572
|
+
width: Br,
|
|
7573
|
+
height: Vr,
|
|
7574
|
+
viewBox: `0 0 ${Br} ${Vr}`,
|
|
7545
7575
|
"aria-hidden": "true",
|
|
7546
7576
|
children: /* @__PURE__ */ T("polyline", {
|
|
7547
|
-
points:
|
|
7577
|
+
points: Hr(s),
|
|
7548
7578
|
stroke: "currentColor",
|
|
7549
7579
|
fill: "none"
|
|
7550
7580
|
})
|
|
@@ -7554,11 +7584,11 @@ function Ur({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
7554
7584
|
}
|
|
7555
7585
|
//#endregion
|
|
7556
7586
|
//#region src/components/AppLink.jsx
|
|
7557
|
-
var
|
|
7587
|
+
var Gr = {
|
|
7558
7588
|
sm: 13,
|
|
7559
7589
|
md: 15,
|
|
7560
7590
|
lg: 18
|
|
7561
|
-
},
|
|
7591
|
+
}, Kr = [
|
|
7562
7592
|
"underline",
|
|
7563
7593
|
"underline-center",
|
|
7564
7594
|
"static",
|
|
@@ -7572,35 +7602,35 @@ var Wr = {
|
|
|
7572
7602
|
"shine",
|
|
7573
7603
|
"none"
|
|
7574
7604
|
];
|
|
7575
|
-
function
|
|
7605
|
+
function qr(e, t, n) {
|
|
7576
7606
|
if (!e) return null;
|
|
7577
7607
|
let r = `wui-link__ic wui-link__ic--${t}`;
|
|
7578
7608
|
return typeof e == "string" ? /* @__PURE__ */ T("span", {
|
|
7579
7609
|
className: r,
|
|
7580
7610
|
children: /* @__PURE__ */ T(W, {
|
|
7581
7611
|
name: e,
|
|
7582
|
-
size:
|
|
7612
|
+
size: Gr[n] ?? Gr.md
|
|
7583
7613
|
})
|
|
7584
7614
|
}) : /* @__PURE__ */ T("span", {
|
|
7585
7615
|
className: r,
|
|
7586
7616
|
children: e
|
|
7587
7617
|
});
|
|
7588
7618
|
}
|
|
7589
|
-
function
|
|
7590
|
-
I("AppLink", d), z("AppLink", "animation", r,
|
|
7591
|
-
let f =
|
|
7619
|
+
function Jr({ 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 }) {
|
|
7620
|
+
I("AppLink", d), z("AppLink", "animation", r, Kr), z("AppLink", "size", o, Object.keys(Gr));
|
|
7621
|
+
let f = Kr.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
|
|
7592
7622
|
"wui-link",
|
|
7593
7623
|
`wui-link--${f}`,
|
|
7594
7624
|
o === "md" ? "" : `wui-link--${o}`,
|
|
7595
7625
|
c ? "is-disabled" : "",
|
|
7596
7626
|
u
|
|
7597
7627
|
].filter(Boolean).join(" "), h = /* @__PURE__ */ E(w, { children: [
|
|
7598
|
-
|
|
7628
|
+
qr(i, "left", o),
|
|
7599
7629
|
/* @__PURE__ */ T("span", {
|
|
7600
7630
|
className: "wui-link__label",
|
|
7601
7631
|
children: e ?? t
|
|
7602
7632
|
}),
|
|
7603
|
-
|
|
7633
|
+
qr(p, "right", o)
|
|
7604
7634
|
] });
|
|
7605
7635
|
return c ? /* @__PURE__ */ T("span", {
|
|
7606
7636
|
className: m,
|
|
@@ -7623,13 +7653,13 @@ function qr({ children: e, label: t, href: n, animation: r = "underline", leftIc
|
|
|
7623
7653
|
}
|
|
7624
7654
|
//#endregion
|
|
7625
7655
|
//#region src/components/AppLogoPicker.jsx
|
|
7626
|
-
var
|
|
7656
|
+
var Yr = {
|
|
7627
7657
|
sm: 72,
|
|
7628
7658
|
md: 120,
|
|
7629
7659
|
lg: 160
|
|
7630
7660
|
};
|
|
7631
|
-
function
|
|
7632
|
-
I("AppLogoPicker", k), z("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(
|
|
7661
|
+
function Xr({ 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: f = 5, 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: D = "circle", className: O = "", ...k }) {
|
|
7662
|
+
I("AppLogoPicker", k), z("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(Yr));
|
|
7633
7663
|
let A = u(null), j = s(), [M, N] = d(null), [P, F] = d(""), [L, R] = d(!1), [ee, B] = d(!1);
|
|
7634
7664
|
o(() => () => M && URL.revokeObjectURL(M), [M]), o(() => {
|
|
7635
7665
|
N(null), R(!1);
|
|
@@ -7637,7 +7667,7 @@ function Yr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
7637
7667
|
let V = a || c, H = M || (e && !L ? e : null), te = v || P, ne = _ && !te ? `${j}-hint` : void 0, re = te ? `${j}-error` : void 0, ie = !V && (!!M || !!H && !!i), ae = () => {
|
|
7638
7668
|
V || A.current?.click();
|
|
7639
7669
|
}, oe = (e) => {
|
|
7640
|
-
let t =
|
|
7670
|
+
let t = cn(e, {
|
|
7641
7671
|
accept: l,
|
|
7642
7672
|
maxSizeMb: f
|
|
7643
7673
|
});
|
|
@@ -7655,7 +7685,7 @@ function Yr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
7655
7685
|
t && oe(t);
|
|
7656
7686
|
}, le = () => {
|
|
7657
7687
|
N(null), F(""), R(!1), A.current && (A.current.value = ""), i?.();
|
|
7658
|
-
}, U = typeof w == "number" ? w :
|
|
7688
|
+
}, U = typeof w == "number" ? w : Yr[w] ?? Yr.md, ue = Math.max(14, Math.round(U * .18)), de = Math.round(U * .5), fe = [
|
|
7659
7689
|
"set-uploader",
|
|
7660
7690
|
C === "avatar" ? "set-uploader--avatar" : "",
|
|
7661
7691
|
D === "rounded" ? "set-uploader--rounded" : D === "square" ? "set-uploader--square" : "",
|
|
@@ -7786,27 +7816,27 @@ function Yr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
7786
7816
|
}
|
|
7787
7817
|
//#endregion
|
|
7788
7818
|
//#region src/components/AppMeter.jsx
|
|
7789
|
-
var
|
|
7819
|
+
var Zr = [
|
|
7790
7820
|
"info",
|
|
7791
7821
|
"success",
|
|
7792
7822
|
"warning",
|
|
7793
7823
|
"danger",
|
|
7794
7824
|
"neutral"
|
|
7795
7825
|
];
|
|
7796
|
-
function
|
|
7826
|
+
function Qr(e, t, n) {
|
|
7797
7827
|
let r = n - t;
|
|
7798
7828
|
if (!(r > 0)) return 0;
|
|
7799
7829
|
let i = Math.min(100, Math.max(0, (e - t) / r * 100));
|
|
7800
7830
|
return Number(i.toFixed(2));
|
|
7801
7831
|
}
|
|
7802
|
-
function
|
|
7832
|
+
function $r(e, t, n, r, i) {
|
|
7803
7833
|
if (t == null && n == null) return i;
|
|
7804
7834
|
let a = "mid";
|
|
7805
7835
|
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";
|
|
7806
7836
|
}
|
|
7807
|
-
function
|
|
7837
|
+
function ei({ 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 }) {
|
|
7808
7838
|
I("AppMeter", d);
|
|
7809
|
-
let f =
|
|
7839
|
+
let f = $r(e, a, o, i, Zr.includes(r) ? r : "info"), p = Qr(e, t, n);
|
|
7810
7840
|
return /* @__PURE__ */ T("div", {
|
|
7811
7841
|
className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
|
|
7812
7842
|
role: "meter",
|
|
@@ -7824,20 +7854,20 @@ function $r({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
|
|
|
7824
7854
|
}
|
|
7825
7855
|
//#endregion
|
|
7826
7856
|
//#region src/components/AppMultiSelect.jsx
|
|
7827
|
-
var
|
|
7857
|
+
var ti = 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, name: f, id: p, label: m, error: h, hint: g, required: _ = !1, help: v, helpLabel: y = "More information", fieldClassName: b = "", ...x }, S) {
|
|
7828
7858
|
I("AppMultiSelect", x);
|
|
7829
|
-
let C = s(), w = p || C, { setRef: D, innerRef: O } =
|
|
7859
|
+
let C = s(), w = p || C, { setRef: D, innerRef: O } = _n({
|
|
7830
7860
|
ref: S,
|
|
7831
7861
|
value: e,
|
|
7832
7862
|
onChange: t,
|
|
7833
|
-
readValue:
|
|
7834
|
-
writeValue:
|
|
7863
|
+
readValue: Sn,
|
|
7864
|
+
writeValue: Cn
|
|
7835
7865
|
});
|
|
7836
7866
|
return o(() => {
|
|
7837
7867
|
let e = O.current;
|
|
7838
7868
|
if (!e) return;
|
|
7839
7869
|
let t = n || [];
|
|
7840
|
-
|
|
7870
|
+
xn(t, e.options) || (e.options = t);
|
|
7841
7871
|
}, [n, O]), /* @__PURE__ */ E("div", {
|
|
7842
7872
|
className: `field${b ? ` ${b}` : ""}`,
|
|
7843
7873
|
children: [
|
|
@@ -7847,7 +7877,7 @@ var ei = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7847
7877
|
children: [
|
|
7848
7878
|
m,
|
|
7849
7879
|
_ && /* @__PURE__ */ T(Q, {}),
|
|
7850
|
-
v && /* @__PURE__ */ T(
|
|
7880
|
+
v && /* @__PURE__ */ T(gn, {
|
|
7851
7881
|
label: y,
|
|
7852
7882
|
children: v
|
|
7853
7883
|
})
|
|
@@ -7881,7 +7911,7 @@ var ei = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7881
7911
|
}) : null
|
|
7882
7912
|
]
|
|
7883
7913
|
});
|
|
7884
|
-
}),
|
|
7914
|
+
}), ni = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: f, step: p = 1, precision: m = 0, unit: h, size: g = "md", id: _, name: y, className: b = "", fieldClassName: x = "", disabled: S = !1, ...C }, w) {
|
|
7885
7915
|
I("AppNumberInput", C);
|
|
7886
7916
|
let D = s(), O = _ || D, k = (e) => {
|
|
7887
7917
|
if (m === 0) return Math.round(e);
|
|
@@ -7986,7 +8016,7 @@ var ei = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7986
8016
|
children: [
|
|
7987
8017
|
e,
|
|
7988
8018
|
t && /* @__PURE__ */ T(Q, {}),
|
|
7989
|
-
i && /* @__PURE__ */ T(
|
|
8019
|
+
i && /* @__PURE__ */ T(gn, {
|
|
7990
8020
|
label: a,
|
|
7991
8021
|
children: i
|
|
7992
8022
|
})
|
|
@@ -8004,9 +8034,9 @@ var ei = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
8004
8034
|
}) : null
|
|
8005
8035
|
]
|
|
8006
8036
|
});
|
|
8007
|
-
}),
|
|
8037
|
+
}), ri = 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) {
|
|
8008
8038
|
I("AppOtpInput", h);
|
|
8009
|
-
let _ = s(), v = f || _, y = l ? `${v}-error` : void 0, b = c ? `${v}-hint` : void 0, x = y || b, { setRef: S } =
|
|
8039
|
+
let _ = s(), v = f || _, y = l ? `${v}-error` : void 0, b = c ? `${v}-hint` : void 0, x = y || b, { setRef: S } = _n({
|
|
8010
8040
|
ref: g,
|
|
8011
8041
|
value: e ?? "",
|
|
8012
8042
|
onChange: t,
|
|
@@ -8049,7 +8079,7 @@ var ei = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
8049
8079
|
});
|
|
8050
8080
|
//#endregion
|
|
8051
8081
|
//#region src/components/AppPageHeader.jsx
|
|
8052
|
-
function
|
|
8082
|
+
function ii({ 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 }) {
|
|
8053
8083
|
I("AppPageHeader", p);
|
|
8054
8084
|
let m = [
|
|
8055
8085
|
"page-header",
|
|
@@ -8108,9 +8138,9 @@ function ri({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
|
|
|
8108
8138
|
}
|
|
8109
8139
|
//#endregion
|
|
8110
8140
|
//#region src/components/AppPagination.jsx
|
|
8111
|
-
function
|
|
8141
|
+
function ai({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
|
|
8112
8142
|
if (I("AppPagination", s), t <= 1) return null;
|
|
8113
|
-
let c =
|
|
8143
|
+
let c = dr(e, t, { siblingCount: r });
|
|
8114
8144
|
return /* @__PURE__ */ T("nav", {
|
|
8115
8145
|
className: [
|
|
8116
8146
|
"pagination-nav",
|
|
@@ -8168,9 +8198,9 @@ function ii({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
|
|
|
8168
8198
|
}
|
|
8169
8199
|
//#endregion
|
|
8170
8200
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
8171
|
-
var
|
|
8201
|
+
var oi = 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) {
|
|
8172
8202
|
I("AppPhoneNumberInput", h);
|
|
8173
|
-
let _ = s(), v = a || _, y = u && v ? `${v}-error` : void 0, { setRef: b } =
|
|
8203
|
+
let _ = s(), v = a || _, y = u && v ? `${v}-error` : void 0, { setRef: b } = _n({
|
|
8174
8204
|
ref: g,
|
|
8175
8205
|
value: e ?? "",
|
|
8176
8206
|
onChange: t,
|
|
@@ -8209,7 +8239,7 @@ var ai = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
|
|
|
8209
8239
|
});
|
|
8210
8240
|
//#endregion
|
|
8211
8241
|
//#region src/components/AppPricingCard.jsx
|
|
8212
|
-
function
|
|
8242
|
+
function si({ 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 }) {
|
|
8213
8243
|
return I("AppPricingCard", u), /* @__PURE__ */ E("div", {
|
|
8214
8244
|
className: [
|
|
8215
8245
|
"plan-card",
|
|
@@ -8263,21 +8293,21 @@ function oi({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
|
|
|
8263
8293
|
}
|
|
8264
8294
|
//#endregion
|
|
8265
8295
|
//#region src/components/AppProgress.jsx
|
|
8266
|
-
var
|
|
8296
|
+
var ci = [
|
|
8267
8297
|
"info",
|
|
8268
8298
|
"success",
|
|
8269
8299
|
"warning",
|
|
8270
8300
|
"danger",
|
|
8271
8301
|
"neutral"
|
|
8272
8302
|
];
|
|
8273
|
-
function
|
|
8303
|
+
function li(e, t) {
|
|
8274
8304
|
if (!(t > 0)) return 0;
|
|
8275
8305
|
let n = Math.min(100, Math.max(0, e / t * 100));
|
|
8276
8306
|
return Number(n.toFixed(2));
|
|
8277
8307
|
}
|
|
8278
|
-
function
|
|
8308
|
+
function ui({ 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 }) {
|
|
8279
8309
|
I("AppProgress", u);
|
|
8280
|
-
let d =
|
|
8310
|
+
let d = ci.includes(n) ? n : "info", f = li(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
|
|
8281
8311
|
"progress-bar",
|
|
8282
8312
|
`wui-progress-${d}`,
|
|
8283
8313
|
o || s ? "progress-bar-striped" : "",
|
|
@@ -8301,8 +8331,8 @@ function li({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
|
|
|
8301
8331
|
}
|
|
8302
8332
|
//#endregion
|
|
8303
8333
|
//#region src/components/AppRadio.jsx
|
|
8304
|
-
var
|
|
8305
|
-
return I("AppRadio", o), /* @__PURE__ */ T(
|
|
8334
|
+
var di = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
8335
|
+
return I("AppRadio", o), /* @__PURE__ */ T(Wn, {
|
|
8306
8336
|
ref: s,
|
|
8307
8337
|
label: e,
|
|
8308
8338
|
id: t,
|
|
@@ -8317,7 +8347,7 @@ var ui = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
8317
8347
|
});
|
|
8318
8348
|
//#endregion
|
|
8319
8349
|
//#region src/components/AppRepeater.jsx
|
|
8320
|
-
function
|
|
8350
|
+
function fi({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, addLabel: a = "Add another", removeLabel: o = "Remove row", emptyText: s, min: c = 0, max: l, numbered: u = !0, className: d = "", ...f }) {
|
|
8321
8351
|
I("AppRepeater", f);
|
|
8322
8352
|
let p = typeof l == "number" && e.length >= l, m = !!i && e.length > c;
|
|
8323
8353
|
return /* @__PURE__ */ E("div", {
|
|
@@ -8369,7 +8399,7 @@ function di({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
|
|
|
8369
8399
|
}
|
|
8370
8400
|
//#endregion
|
|
8371
8401
|
//#region src/components/AppResourceCard.jsx
|
|
8372
|
-
function
|
|
8402
|
+
function pi({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
|
|
8373
8403
|
I("AppResourceCard", s);
|
|
8374
8404
|
let c = /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
|
|
8375
8405
|
className: "res-card-icon",
|
|
@@ -8403,7 +8433,7 @@ function fi({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
|
|
|
8403
8433
|
}
|
|
8404
8434
|
//#endregion
|
|
8405
8435
|
//#region src/components/AppResult.jsx
|
|
8406
|
-
var
|
|
8436
|
+
var mi = {
|
|
8407
8437
|
success: {
|
|
8408
8438
|
icon: "check-circle",
|
|
8409
8439
|
tone: "success"
|
|
@@ -8424,9 +8454,9 @@ var pi = {
|
|
|
8424
8454
|
404: { tone: "muted" },
|
|
8425
8455
|
500: { tone: "muted" }
|
|
8426
8456
|
};
|
|
8427
|
-
function
|
|
8428
|
-
I("AppResult", s), z("AppResult", "status", e, Object.keys(
|
|
8429
|
-
let c =
|
|
8457
|
+
function hi({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
|
|
8458
|
+
I("AppResult", s), z("AppResult", "status", e, Object.keys(mi));
|
|
8459
|
+
let c = mi[e] || mi.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
|
|
8430
8460
|
return /* @__PURE__ */ E("div", {
|
|
8431
8461
|
className: [
|
|
8432
8462
|
"result",
|
|
@@ -8464,7 +8494,7 @@ function mi({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
|
|
|
8464
8494
|
}
|
|
8465
8495
|
//#endregion
|
|
8466
8496
|
//#region src/components/AppScrollbar.jsx
|
|
8467
|
-
function
|
|
8497
|
+
function gi({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
8468
8498
|
return I("AppScrollbar", i), /* @__PURE__ */ T("div", {
|
|
8469
8499
|
className: t ? `wui-scroll ${t}` : "wui-scroll",
|
|
8470
8500
|
style: n == null ? r : {
|
|
@@ -8477,7 +8507,7 @@ function hi({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
|
8477
8507
|
}
|
|
8478
8508
|
//#endregion
|
|
8479
8509
|
//#region src/components/AppSearch.jsx
|
|
8480
|
-
function
|
|
8510
|
+
function _i({ 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 }) {
|
|
8481
8511
|
I("AppSearch", u);
|
|
8482
8512
|
let d = t || n;
|
|
8483
8513
|
return /* @__PURE__ */ E("div", {
|
|
@@ -8524,7 +8554,7 @@ function gi({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
|
|
|
8524
8554
|
}
|
|
8525
8555
|
//#endregion
|
|
8526
8556
|
//#region src/components/AppSegmented.jsx
|
|
8527
|
-
function
|
|
8557
|
+
function vi({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...p }) {
|
|
8528
8558
|
I("AppSegmented", p);
|
|
8529
8559
|
let m = s(), h = i || m, g = u(null), _ = u(null), v = [
|
|
8530
8560
|
"segmented",
|
|
@@ -8598,9 +8628,9 @@ function _i({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
|
|
|
8598
8628
|
}
|
|
8599
8629
|
//#endregion
|
|
8600
8630
|
//#region src/components/AppSelect.jsx
|
|
8601
|
-
var
|
|
8631
|
+
var yi = (e) => e == null ? "" : e.label ?? e.text ?? "", bi = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, floatingLabel: d = !1, disabled: f, label: p, required: m = !1, error: h, hint: g, help: _, helpLabel: v = "More information", id: y, name: b, className: x = "", fieldClassName: S = "", "aria-label": C, "aria-labelledby": w, "aria-describedby": D, ...O }, k) {
|
|
8602
8632
|
I("AppSelect", O);
|
|
8603
|
-
let A = s(), { setRef: j, innerRef: M } =
|
|
8633
|
+
let A = s(), { setRef: j, innerRef: M } = _n({
|
|
8604
8634
|
ref: k,
|
|
8605
8635
|
value: e ?? "",
|
|
8606
8636
|
onChange: t
|
|
@@ -8610,10 +8640,10 @@ var vi = (e) => e == null ? "" : e.label ?? e.text ?? "", yi = i(function({ valu
|
|
|
8610
8640
|
if (!e) return;
|
|
8611
8641
|
let t = n.map((e) => ({
|
|
8612
8642
|
value: e.value,
|
|
8613
|
-
label:
|
|
8643
|
+
label: yi(e),
|
|
8614
8644
|
icon: e.icon
|
|
8615
8645
|
}));
|
|
8616
|
-
|
|
8646
|
+
xn(t, e.options) || (e.options = t);
|
|
8617
8647
|
}, [n, M]);
|
|
8618
8648
|
let N = y || A, P = d && p, F = h && N ? `${N}-error` : void 0, L = g && N ? `${N}-hint` : void 0, R = /* @__PURE__ */ T("wui-select", {
|
|
8619
8649
|
"aria-label": C || (typeof p == "string" ? p : void 0),
|
|
@@ -8643,7 +8673,7 @@ var vi = (e) => e == null ? "" : e.label ?? e.text ?? "", yi = i(function({ valu
|
|
|
8643
8673
|
children: [
|
|
8644
8674
|
p,
|
|
8645
8675
|
m && /* @__PURE__ */ T(Q, {}),
|
|
8646
|
-
_ && /* @__PURE__ */ T(
|
|
8676
|
+
_ && /* @__PURE__ */ T(gn, {
|
|
8647
8677
|
label: v,
|
|
8648
8678
|
children: _
|
|
8649
8679
|
})
|
|
@@ -8671,7 +8701,7 @@ var vi = (e) => e == null ? "" : e.label ?? e.text ?? "", yi = i(function({ valu
|
|
|
8671
8701
|
});
|
|
8672
8702
|
//#endregion
|
|
8673
8703
|
//#region src/components/AppShell.jsx
|
|
8674
|
-
function
|
|
8704
|
+
function xi({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: f, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
|
|
8675
8705
|
I("AppShell", _);
|
|
8676
8706
|
let [v, y] = d(!1), [b, x] = d(!1), [S, C] = d(!1), w = u ?? v, D = () => {
|
|
8677
8707
|
let e = !w;
|
|
@@ -8719,7 +8749,7 @@ function bi({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
8719
8749
|
children: [e.label && /* @__PURE__ */ T("div", {
|
|
8720
8750
|
className: "app-nav-group-label",
|
|
8721
8751
|
children: e.label
|
|
8722
|
-
}), e.items.map((e) => /* @__PURE__ */ T(
|
|
8752
|
+
}), e.items.map((e) => /* @__PURE__ */ T(Si, {
|
|
8723
8753
|
item: e,
|
|
8724
8754
|
linkComponent: h,
|
|
8725
8755
|
onNavigate: () => x(!1)
|
|
@@ -8739,8 +8769,8 @@ function bi({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
8739
8769
|
"aria-label": w ? "Expand navigation" : "Collapse navigation",
|
|
8740
8770
|
"aria-expanded": !w,
|
|
8741
8771
|
children: /* @__PURE__ */ T(W, {
|
|
8742
|
-
name: "
|
|
8743
|
-
size:
|
|
8772
|
+
name: "chevrons-left",
|
|
8773
|
+
size: 20
|
|
8744
8774
|
})
|
|
8745
8775
|
}),
|
|
8746
8776
|
/* @__PURE__ */ E("div", {
|
|
@@ -8786,7 +8816,7 @@ function bi({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
8786
8816
|
]
|
|
8787
8817
|
});
|
|
8788
8818
|
}
|
|
8789
|
-
function
|
|
8819
|
+
function Si({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
8790
8820
|
let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = d(a);
|
|
8791
8821
|
o(() => {
|
|
8792
8822
|
a && !s && c(!0);
|
|
@@ -8828,7 +8858,7 @@ function xi({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
8828
8858
|
"aria-hidden": !s || void 0,
|
|
8829
8859
|
children: /* @__PURE__ */ T("div", {
|
|
8830
8860
|
className: "app-nav-sub-inner",
|
|
8831
|
-
children: e.children.map((e) => /* @__PURE__ */ T(
|
|
8861
|
+
children: e.children.map((e) => /* @__PURE__ */ T(Si, {
|
|
8832
8862
|
item: e,
|
|
8833
8863
|
linkComponent: t,
|
|
8834
8864
|
onNavigate: n,
|
|
@@ -8869,7 +8899,7 @@ function xi({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
8869
8899
|
}
|
|
8870
8900
|
//#endregion
|
|
8871
8901
|
//#region src/components/AppSidebarMenu.jsx
|
|
8872
|
-
var
|
|
8902
|
+
var Ci = {
|
|
8873
8903
|
left: "start",
|
|
8874
8904
|
right: "end",
|
|
8875
8905
|
start: "start",
|
|
@@ -8877,9 +8907,9 @@ var Si = {
|
|
|
8877
8907
|
top: "top",
|
|
8878
8908
|
bottom: "bottom"
|
|
8879
8909
|
};
|
|
8880
|
-
function
|
|
8881
|
-
I("AppSidebarMenu", v), z("AppSidebarMenu", "side", n, Object.keys(
|
|
8882
|
-
let { style: y, ...x } = v, S =
|
|
8910
|
+
function wi({ 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 }) {
|
|
8911
|
+
I("AppSidebarMenu", v), z("AppSidebarMenu", "side", n, Object.keys(Ci));
|
|
8912
|
+
let { style: y, ...x } = v, S = Ci[n] || "end", C = c || l || y ? {
|
|
8883
8913
|
...c && { "--asm-width": c },
|
|
8884
8914
|
...l && { "--asm-max-width": l },
|
|
8885
8915
|
...y
|
|
@@ -8932,14 +8962,14 @@ function Ci({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
8932
8962
|
}
|
|
8933
8963
|
//#endregion
|
|
8934
8964
|
//#region src/components/AppSlider.jsx
|
|
8935
|
-
var
|
|
8965
|
+
var Ti = 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 = "", ...D }, O) {
|
|
8936
8966
|
I("AppSlider", D);
|
|
8937
|
-
let k = s(), A = x || k, j = r, { setRef: M, innerRef: N } =
|
|
8967
|
+
let k = s(), A = x || k, j = r, { setRef: M, innerRef: N } = _n({
|
|
8938
8968
|
ref: O,
|
|
8939
8969
|
value: j ? void 0 : e,
|
|
8940
8970
|
onChange: i,
|
|
8941
|
-
readValue: j ?
|
|
8942
|
-
writeValue: j ? void 0 :
|
|
8971
|
+
readValue: j ? wn : void 0,
|
|
8972
|
+
writeValue: j ? void 0 : Tn
|
|
8943
8973
|
});
|
|
8944
8974
|
o(() => {
|
|
8945
8975
|
if (!j) return;
|
|
@@ -8993,14 +9023,14 @@ var wi = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
|
|
|
8993
9023
|
})
|
|
8994
9024
|
]
|
|
8995
9025
|
});
|
|
8996
|
-
}),
|
|
9026
|
+
}), Ei = {
|
|
8997
9027
|
sm: 44,
|
|
8998
9028
|
md: 56,
|
|
8999
9029
|
lg: 72
|
|
9000
9030
|
};
|
|
9001
|
-
function
|
|
9002
|
-
I("AppSplash", c), z("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(
|
|
9003
|
-
let { style: l, ...u } = c, d = typeof a == "number" ? a :
|
|
9031
|
+
function Di({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
|
|
9032
|
+
I("AppSplash", c), z("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Ei));
|
|
9033
|
+
let { style: l, ...u } = c, d = typeof a == "number" ? a : Ei[a] ?? Ei.md, f = i === "ring" ? /* @__PURE__ */ T("span", {
|
|
9004
9034
|
className: "splash-ring",
|
|
9005
9035
|
"aria-hidden": "true"
|
|
9006
9036
|
}) : i === "dots" ? /* @__PURE__ */ E("span", {
|
|
@@ -9047,7 +9077,7 @@ function Ei({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
|
|
|
9047
9077
|
}
|
|
9048
9078
|
//#endregion
|
|
9049
9079
|
//#region src/components/AppStatusBadge.jsx
|
|
9050
|
-
function
|
|
9080
|
+
function Oi({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
|
|
9051
9081
|
return I("AppStatusBadge", a), e == null || e === "" ? "—" : H(/* @__PURE__ */ T("span", {
|
|
9052
9082
|
className: `status-label ${t}${n ? ` ${n}` : ""}`,
|
|
9053
9083
|
...a,
|
|
@@ -9056,7 +9086,7 @@ function Di({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
|
|
|
9056
9086
|
}
|
|
9057
9087
|
//#endregion
|
|
9058
9088
|
//#region src/components/AppStepper.jsx
|
|
9059
|
-
function
|
|
9089
|
+
function ki({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
9060
9090
|
I("AppStepper", c);
|
|
9061
9091
|
let l = t === "journey";
|
|
9062
9092
|
return /* @__PURE__ */ T("nav", {
|
|
@@ -9069,7 +9099,7 @@ function Oi({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
9069
9099
|
"aria-label": a,
|
|
9070
9100
|
...c,
|
|
9071
9101
|
children: e.map((t, n) => {
|
|
9072
|
-
let a = t.status ||
|
|
9102
|
+
let a = t.status || Ai(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
|
|
9073
9103
|
c = a === "done" ? /* @__PURE__ */ T(W, {
|
|
9074
9104
|
name: "check",
|
|
9075
9105
|
size: 14
|
|
@@ -9133,13 +9163,13 @@ function Oi({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
9133
9163
|
})
|
|
9134
9164
|
});
|
|
9135
9165
|
}
|
|
9136
|
-
function
|
|
9166
|
+
function Ai(e, t) {
|
|
9137
9167
|
return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
|
|
9138
9168
|
}
|
|
9139
9169
|
//#endregion
|
|
9140
9170
|
//#region src/components/AppSwitch.jsx
|
|
9141
|
-
var
|
|
9142
|
-
return I("AppSwitch", s), /* @__PURE__ */ T(
|
|
9171
|
+
var ji = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
|
|
9172
|
+
return I("AppSwitch", s), /* @__PURE__ */ T(Wn, {
|
|
9143
9173
|
ref: c,
|
|
9144
9174
|
label: e,
|
|
9145
9175
|
id: t,
|
|
@@ -9154,7 +9184,7 @@ var Ai = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
|
|
|
9154
9184
|
});
|
|
9155
9185
|
//#endregion
|
|
9156
9186
|
//#region src/components/AppTableEmptyState.jsx
|
|
9157
|
-
function
|
|
9187
|
+
function Mi({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
9158
9188
|
return I("AppTableEmptyState", i), /* @__PURE__ */ E("div", {
|
|
9159
9189
|
className: "tbl-empty",
|
|
9160
9190
|
...i,
|
|
@@ -9180,8 +9210,8 @@ function ji({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
|
9180
9210
|
}
|
|
9181
9211
|
//#endregion
|
|
9182
9212
|
//#region src/components/AppTabs.jsx
|
|
9183
|
-
var
|
|
9184
|
-
function
|
|
9213
|
+
var Ni = 1, Pi = 28, Fi = .7;
|
|
9214
|
+
function Ii({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: s = "horizontal", size: l = "md", fitted: f = !1, activation: p = "automatic", ariaLabel: m, className: h = "", style: g, ..._ }) {
|
|
9185
9215
|
I("AppTabs", _);
|
|
9186
9216
|
let v = u(null), y = u(null), b = s === "vertical", [x, S] = d(t);
|
|
9187
9217
|
o(() => {
|
|
@@ -9193,7 +9223,7 @@ function Fi({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
9193
9223
|
let e = v.current, t = y.current;
|
|
9194
9224
|
if (!e || !t || b) return;
|
|
9195
9225
|
let n = e.scrollWidth - e.clientWidth;
|
|
9196
|
-
t.classList.toggle("is-overflow-start", e.scrollLeft >
|
|
9226
|
+
t.classList.toggle("is-overflow-start", e.scrollLeft > Ni), t.classList.toggle("is-overflow-end", n > Ni && e.scrollLeft < n - Ni);
|
|
9197
9227
|
}, [b]), M = a(() => {
|
|
9198
9228
|
let n = v.current;
|
|
9199
9229
|
if (!n) return;
|
|
@@ -9209,7 +9239,7 @@ function Fi({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
9209
9239
|
if (!e || b) return;
|
|
9210
9240
|
let t = e.querySelector(".app-tab.active");
|
|
9211
9241
|
if (!t) return;
|
|
9212
|
-
let n =
|
|
9242
|
+
let n = Pi, r = t.offsetLeft, i = r + t.offsetWidth;
|
|
9213
9243
|
r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
|
|
9214
9244
|
}, [b]);
|
|
9215
9245
|
c(() => {
|
|
@@ -9244,7 +9274,7 @@ function Fi({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
9244
9274
|
}
|
|
9245
9275
|
let L = (e) => {
|
|
9246
9276
|
let t = v.current;
|
|
9247
|
-
t && t.scrollBy({ left: e * t.clientWidth *
|
|
9277
|
+
t && t.scrollBy({ left: e * t.clientWidth * Fi });
|
|
9248
9278
|
}, R = [
|
|
9249
9279
|
"app-tabs",
|
|
9250
9280
|
i === "pills" ? "app-tabs-pills" : "",
|
|
@@ -9357,14 +9387,14 @@ function Fi({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
|
|
|
9357
9387
|
}
|
|
9358
9388
|
//#endregion
|
|
9359
9389
|
//#region src/components/AppTagInput.jsx
|
|
9360
|
-
var
|
|
9390
|
+
var Li = 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) {
|
|
9361
9391
|
I("AppTagInput", y);
|
|
9362
|
-
let x = s(), S = p || x, { setRef: C } =
|
|
9392
|
+
let x = s(), S = p || x, { setRef: C } = _n({
|
|
9363
9393
|
ref: b,
|
|
9364
9394
|
value: e,
|
|
9365
9395
|
onChange: t,
|
|
9366
|
-
readValue:
|
|
9367
|
-
writeValue:
|
|
9396
|
+
readValue: Sn,
|
|
9397
|
+
writeValue: Cn
|
|
9368
9398
|
});
|
|
9369
9399
|
return /* @__PURE__ */ E("div", {
|
|
9370
9400
|
className: `field${g ? ` ${g}` : ""}`,
|
|
@@ -9375,7 +9405,7 @@ var Ii = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
9375
9405
|
children: [
|
|
9376
9406
|
i,
|
|
9377
9407
|
c && /* @__PURE__ */ T(Q, {}),
|
|
9378
|
-
_ && /* @__PURE__ */ T(
|
|
9408
|
+
_ && /* @__PURE__ */ T(gn, {
|
|
9379
9409
|
label: v,
|
|
9380
9410
|
children: _
|
|
9381
9411
|
})
|
|
@@ -9408,7 +9438,7 @@ var Ii = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
9408
9438
|
}) : null
|
|
9409
9439
|
]
|
|
9410
9440
|
});
|
|
9411
|
-
}),
|
|
9441
|
+
}), Ri = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: l = "More information", id: f, name: p, rows: m = 4, autoGrow: h = !1, showCount: g = !1, maxLength: _, className: y = "", fieldClassName: b = "", ...x }, S) {
|
|
9412
9442
|
I("AppTextarea", x);
|
|
9413
9443
|
let C = s(), w = f || C, D = [
|
|
9414
9444
|
"textarea",
|
|
@@ -9444,7 +9474,7 @@ var Ii = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
9444
9474
|
children: [
|
|
9445
9475
|
e,
|
|
9446
9476
|
t && /* @__PURE__ */ T(Q, {}),
|
|
9447
|
-
i && /* @__PURE__ */ T(
|
|
9477
|
+
i && /* @__PURE__ */ T(gn, {
|
|
9448
9478
|
label: l,
|
|
9449
9479
|
children: i
|
|
9450
9480
|
})
|
|
@@ -9479,7 +9509,7 @@ var Ii = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
9479
9509
|
})
|
|
9480
9510
|
]
|
|
9481
9511
|
});
|
|
9482
|
-
}),
|
|
9512
|
+
}), zi = {
|
|
9483
9513
|
done: "check",
|
|
9484
9514
|
current: "clock",
|
|
9485
9515
|
"on-hold": "lock",
|
|
@@ -9488,7 +9518,7 @@ var Ii = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
9488
9518
|
skipped: "arrow-right",
|
|
9489
9519
|
upcoming: null
|
|
9490
9520
|
};
|
|
9491
|
-
function
|
|
9521
|
+
function Bi({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
|
|
9492
9522
|
I("AppTimeline", o);
|
|
9493
9523
|
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;
|
|
9494
9524
|
return /* @__PURE__ */ T("ol", {
|
|
@@ -9499,7 +9529,7 @@ function zi({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
9499
9529
|
} : a,
|
|
9500
9530
|
...o,
|
|
9501
9531
|
children: e.map((e, t) => {
|
|
9502
|
-
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ?
|
|
9532
|
+
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? zi[n] : void 0) : e.icon || "circle";
|
|
9503
9533
|
return /* @__PURE__ */ E("li", {
|
|
9504
9534
|
className: `timeline-item${r}${i}`,
|
|
9505
9535
|
children: [/* @__PURE__ */ T("span", {
|
|
@@ -9569,9 +9599,9 @@ function zi({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
9569
9599
|
}
|
|
9570
9600
|
//#endregion
|
|
9571
9601
|
//#region src/components/AppTimePicker.jsx
|
|
9572
|
-
var
|
|
9602
|
+
var Vi = 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) {
|
|
9573
9603
|
I("AppTimePicker", y);
|
|
9574
|
-
let x = s(), S = h || o || x, { setRef: C } =
|
|
9604
|
+
let x = s(), S = h || o || x, { setRef: C } = _n({
|
|
9575
9605
|
ref: b,
|
|
9576
9606
|
value: e ?? "",
|
|
9577
9607
|
onChange: t
|
|
@@ -9614,35 +9644,35 @@ var Bi = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
9614
9644
|
})
|
|
9615
9645
|
]
|
|
9616
9646
|
});
|
|
9617
|
-
}),
|
|
9618
|
-
function
|
|
9619
|
-
for (let e of
|
|
9620
|
-
}
|
|
9621
|
-
function qi(e) {
|
|
9622
|
-
let t = Ui.get(e);
|
|
9623
|
-
t !== void 0 && (clearTimeout(t), Ui.delete(e));
|
|
9647
|
+
}), Hi = 6, $ = [], Ui = /* @__PURE__ */ new Set(), Wi = /* @__PURE__ */ new Map(), Gi = /* @__PURE__ */ new Set(), Ki = 0;
|
|
9648
|
+
function qi() {
|
|
9649
|
+
for (let e of Ui) e($);
|
|
9624
9650
|
}
|
|
9625
9651
|
function Ji(e) {
|
|
9626
|
-
|
|
9652
|
+
let t = Wi.get(e);
|
|
9653
|
+
t !== void 0 && (clearTimeout(t), Wi.delete(e));
|
|
9654
|
+
}
|
|
9655
|
+
function Yi(e) {
|
|
9656
|
+
if (e.length <= Hi) return e;
|
|
9627
9657
|
let t = [...e], n = [];
|
|
9628
|
-
for (; t.length >
|
|
9658
|
+
for (; t.length > Hi;) {
|
|
9629
9659
|
let e = t.findIndex((e) => e.duration !== 0);
|
|
9630
9660
|
n.push(t.splice(e === -1 ? 0 : e, 1)[0]);
|
|
9631
9661
|
}
|
|
9632
|
-
for (let e of n)
|
|
9662
|
+
for (let e of n) Ji(e.id), Gi.delete(e.id);
|
|
9633
9663
|
return t;
|
|
9634
9664
|
}
|
|
9635
|
-
function
|
|
9636
|
-
return
|
|
9637
|
-
if (
|
|
9665
|
+
function Xi(e) {
|
|
9666
|
+
return Ui.add(e), e($), () => {
|
|
9667
|
+
if (Ui.delete(e), Ui.size === 0) for (let e of $) e.duration > 0 && !Wi.has(e.id) && (Gi.delete(e.id), Wi.set(e.id, setTimeout(() => $i(e.id), e.duration)));
|
|
9638
9668
|
};
|
|
9639
9669
|
}
|
|
9640
|
-
function
|
|
9670
|
+
function Zi(e, t, n = {}) {
|
|
9641
9671
|
let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
|
|
9642
9672
|
if (r) {
|
|
9643
9673
|
let i = $.find((e) => e.externalId === r);
|
|
9644
9674
|
if (i) {
|
|
9645
|
-
|
|
9675
|
+
Ji(i.id);
|
|
9646
9676
|
let r = n.duration === void 0 ? 5e3 : n.duration;
|
|
9647
9677
|
$ = $.map((a) => a.id === i.id ? {
|
|
9648
9678
|
...a,
|
|
@@ -9655,12 +9685,12 @@ function Xi(e, t, n = {}) {
|
|
|
9655
9685
|
shape: n.shape,
|
|
9656
9686
|
surface: n.surface,
|
|
9657
9687
|
progress: n.progress
|
|
9658
|
-
} : a),
|
|
9688
|
+
} : a), qi(), r > 0 && !Gi.has(i.id) && Wi.set(i.id, setTimeout(() => $i(i.id), r));
|
|
9659
9689
|
return;
|
|
9660
9690
|
}
|
|
9661
9691
|
} else if (i && $.some((e) => e.key === i)) return;
|
|
9662
|
-
let a = ++
|
|
9663
|
-
$ =
|
|
9692
|
+
let a = ++Ki, o = n.duration === void 0 ? 5e3 : n.duration;
|
|
9693
|
+
$ = Yi([...$, {
|
|
9664
9694
|
id: a,
|
|
9665
9695
|
externalId: r,
|
|
9666
9696
|
message: e,
|
|
@@ -9673,25 +9703,25 @@ function Xi(e, t, n = {}) {
|
|
|
9673
9703
|
surface: n.surface,
|
|
9674
9704
|
progress: n.progress,
|
|
9675
9705
|
key: i
|
|
9676
|
-
}]),
|
|
9677
|
-
}
|
|
9678
|
-
function Zi(e) {
|
|
9679
|
-
qi(e), Wi.add(e);
|
|
9706
|
+
}]), qi(), o > 0 && Wi.set(a, setTimeout(() => $i(a), o));
|
|
9680
9707
|
}
|
|
9681
9708
|
function Qi(e) {
|
|
9682
|
-
|
|
9709
|
+
Ji(e), Gi.add(e);
|
|
9710
|
+
}
|
|
9711
|
+
function $i(e) {
|
|
9712
|
+
Ji(e), Gi.delete(e);
|
|
9683
9713
|
let t = $.filter((t) => t.id !== e);
|
|
9684
|
-
t.length !== $.length && ($ = t,
|
|
9714
|
+
t.length !== $.length && ($ = t, qi());
|
|
9685
9715
|
}
|
|
9686
|
-
function
|
|
9687
|
-
if (!($.length === 0 &&
|
|
9688
|
-
for (let e of
|
|
9689
|
-
|
|
9716
|
+
function ea() {
|
|
9717
|
+
if (!($.length === 0 && Wi.size === 0 && Gi.size === 0)) {
|
|
9718
|
+
for (let e of Wi.values()) clearTimeout(e);
|
|
9719
|
+
Wi.clear(), Gi.clear(), $.length !== 0 && ($ = [], qi());
|
|
9690
9720
|
}
|
|
9691
9721
|
}
|
|
9692
9722
|
//#endregion
|
|
9693
9723
|
//#region src/components/AppToast.jsx
|
|
9694
|
-
var
|
|
9724
|
+
var ta = {
|
|
9695
9725
|
success: {
|
|
9696
9726
|
icon: "check-circle",
|
|
9697
9727
|
assertive: !1
|
|
@@ -9708,7 +9738,7 @@ var ea = {
|
|
|
9708
9738
|
icon: "alert-circle",
|
|
9709
9739
|
assertive: !0
|
|
9710
9740
|
}
|
|
9711
|
-
},
|
|
9741
|
+
}, na = {
|
|
9712
9742
|
"top-start": "top-0 start-0",
|
|
9713
9743
|
"top-center": "top-0 start-50 translate-middle-x",
|
|
9714
9744
|
"top-end": "top-0 end-0",
|
|
@@ -9716,21 +9746,21 @@ var ea = {
|
|
|
9716
9746
|
"bottom-start": "bottom-0 start-0",
|
|
9717
9747
|
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
9718
9748
|
"bottom-end": "bottom-0 end-0"
|
|
9719
|
-
},
|
|
9749
|
+
}, ra = 64, ia = /* @__PURE__ */ new Set([
|
|
9720
9750
|
"rise",
|
|
9721
9751
|
"organic",
|
|
9722
9752
|
"jelly",
|
|
9723
9753
|
"spring"
|
|
9724
|
-
]),
|
|
9754
|
+
]), aa = /* @__PURE__ */ new Set([
|
|
9725
9755
|
"rounded",
|
|
9726
9756
|
"pill",
|
|
9727
9757
|
"sharp"
|
|
9728
|
-
]),
|
|
9729
|
-
function
|
|
9730
|
-
I("AppToast", s), z("AppToast", "position", e, Object.keys(
|
|
9758
|
+
]), oa = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
9759
|
+
function sa({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
|
|
9760
|
+
I("AppToast", s), z("AppToast", "position", e, Object.keys(na)), z("AppToast", "animation", n, ia), z("AppToast", "shape", r, aa), z("AppToast", "surface", i, oa);
|
|
9731
9761
|
let [c, l] = d([]);
|
|
9732
|
-
o(() =>
|
|
9733
|
-
let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, p =
|
|
9762
|
+
o(() => Xi(l), []);
|
|
9763
|
+
let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, p = na[e] ?? na["bottom-end"];
|
|
9734
9764
|
return /* @__PURE__ */ E("div", {
|
|
9735
9765
|
...s,
|
|
9736
9766
|
className: `wui-toast-container toast-container position-fixed ${p} p-3 ${a}`.trim(),
|
|
@@ -9742,7 +9772,7 @@ function oa({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
9742
9772
|
u,
|
|
9743
9773
|
" more"
|
|
9744
9774
|
]
|
|
9745
|
-
}), f.map((e) => /* @__PURE__ */ T(
|
|
9775
|
+
}), f.map((e) => /* @__PURE__ */ T(ca, {
|
|
9746
9776
|
toast: e,
|
|
9747
9777
|
defaultAnimation: n,
|
|
9748
9778
|
defaultShape: r,
|
|
@@ -9750,14 +9780,14 @@ function oa({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
9750
9780
|
}, e.id))]
|
|
9751
9781
|
});
|
|
9752
9782
|
}
|
|
9753
|
-
function
|
|
9754
|
-
let i =
|
|
9783
|
+
function ca({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
|
|
9784
|
+
let i = ta[e.variant] ?? ta.success, a = ia.has(e.animation) ? e.animation : t, s = aa.has(e.shape) ? e.shape : n, c = oa.has(e.surface) ? e.surface : r, l = (a !== "rise" && ia.has(a) ? ` wui-toast--anim-${a}` : "") + (s !== "rounded" && aa.has(s) ? ` wui-toast--shape-${s}` : "") + (c === "inverse" ? " wui-toast--surface-inverse" : ""), f = e.duration === 0, [p, m] = d(0), [h, g] = d(!1), _ = u(null), v = () => $i(e.id), y = u(null);
|
|
9755
9785
|
o(() => {
|
|
9756
9786
|
if (e.duration === 0) return;
|
|
9757
|
-
|
|
9787
|
+
Qi(e.id);
|
|
9758
9788
|
let t = y.current, n = t == null ? "" : getComputedStyle(t).animationName;
|
|
9759
9789
|
if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
|
|
9760
|
-
let r = setTimeout(() =>
|
|
9790
|
+
let r = setTimeout(() => $i(e.id), e.duration);
|
|
9761
9791
|
return () => clearTimeout(r);
|
|
9762
9792
|
}, [e.id, e.duration]);
|
|
9763
9793
|
let b = (e) => {
|
|
@@ -9769,7 +9799,7 @@ function sa({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
9769
9799
|
}, C = (e) => {
|
|
9770
9800
|
if (_.current === null) return;
|
|
9771
9801
|
let t = e.clientX - _.current;
|
|
9772
|
-
if (Math.abs(t) >
|
|
9802
|
+
if (Math.abs(t) > ra) {
|
|
9773
9803
|
v();
|
|
9774
9804
|
return;
|
|
9775
9805
|
}
|
|
@@ -9853,7 +9883,7 @@ function sa({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
9853
9883
|
}
|
|
9854
9884
|
//#endregion
|
|
9855
9885
|
//#region src/components/AppToolbar.jsx
|
|
9856
|
-
function
|
|
9886
|
+
function la({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
|
|
9857
9887
|
I("AppToolbar", u);
|
|
9858
9888
|
let f = s(), p = o || f, [m, h] = d(r), g = n === void 0 ? m : n;
|
|
9859
9889
|
return /* @__PURE__ */ E("div", {
|
|
@@ -9911,7 +9941,7 @@ function ca({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
|
|
|
9911
9941
|
}
|
|
9912
9942
|
//#endregion
|
|
9913
9943
|
//#region src/components/AppWizard.jsx
|
|
9914
|
-
var
|
|
9944
|
+
var ua = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: d, 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 = "", ...E }, D) {
|
|
9915
9945
|
I("AppWizard", E);
|
|
9916
9946
|
let O = u(null), k = (e) => {
|
|
9917
9947
|
O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
|
|
@@ -9963,13 +9993,13 @@ var la = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
|
|
|
9963
9993
|
children: A[t]
|
|
9964
9994
|
}, e.key ?? `${e.label}-${t}`))
|
|
9965
9995
|
});
|
|
9966
|
-
}),
|
|
9996
|
+
}), da = /* @__PURE__ */ new Set([
|
|
9967
9997
|
"ArrowUp",
|
|
9968
9998
|
"ArrowDown",
|
|
9969
9999
|
"ArrowLeft",
|
|
9970
10000
|
"ArrowRight"
|
|
9971
10001
|
]);
|
|
9972
|
-
function
|
|
10002
|
+
function fa({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: f = !1, createLabel: p = "Create workspace", compact: m = !1, size: h = "md", ariaLabel: g, ...v }) {
|
|
9973
10003
|
let { onToggle: y, ...b } = v;
|
|
9974
10004
|
I("AppWorkspaceSwitcher", b);
|
|
9975
10005
|
let [x, S] = d(""), [C, w] = d(!1), D = u(null), O = (e, t) => {
|
|
@@ -9989,7 +10019,7 @@ function da({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9989
10019
|
let e = D.current;
|
|
9990
10020
|
if (!e) return;
|
|
9991
10021
|
let t = (e) => {
|
|
9992
|
-
if (
|
|
10022
|
+
if (da.has(e.key)) {
|
|
9993
10023
|
e.stopPropagation();
|
|
9994
10024
|
return;
|
|
9995
10025
|
}
|
|
@@ -10007,7 +10037,7 @@ function da({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
10007
10037
|
onToggle: O,
|
|
10008
10038
|
...b,
|
|
10009
10039
|
children: [/* @__PURE__ */ T(_.Toggle, {
|
|
10010
|
-
as:
|
|
10040
|
+
as: ga,
|
|
10011
10041
|
compact: m,
|
|
10012
10042
|
tenant: k,
|
|
10013
10043
|
"aria-label": M
|
|
@@ -10042,7 +10072,7 @@ function da({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
10042
10072
|
className: `workspace-switcher-option${e.id === k?.id ? " is-active" : ""}`,
|
|
10043
10073
|
onClick: () => n?.(e),
|
|
10044
10074
|
children: [
|
|
10045
|
-
/* @__PURE__ */ T(
|
|
10075
|
+
/* @__PURE__ */ T(ma, { tenant: e }),
|
|
10046
10076
|
/* @__PURE__ */ T("span", {
|
|
10047
10077
|
className: "workspace-switcher-option-name",
|
|
10048
10078
|
children: e.name
|
|
@@ -10074,17 +10104,17 @@ function da({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
10074
10104
|
}) : null,
|
|
10075
10105
|
i ? /* @__PURE__ */ T("div", {
|
|
10076
10106
|
className: "workspace-switcher-footer",
|
|
10077
|
-
children:
|
|
10107
|
+
children: ha(i, a)
|
|
10078
10108
|
}) : null
|
|
10079
10109
|
]
|
|
10080
10110
|
})]
|
|
10081
10111
|
});
|
|
10082
10112
|
}
|
|
10083
|
-
function
|
|
10113
|
+
function pa(e) {
|
|
10084
10114
|
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
10085
10115
|
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
10086
10116
|
}
|
|
10087
|
-
function
|
|
10117
|
+
function ma({ tenant: e }) {
|
|
10088
10118
|
return e?.logoUrl ? /* @__PURE__ */ T("img", {
|
|
10089
10119
|
className: "workspace-switcher-mark",
|
|
10090
10120
|
src: e.logoUrl,
|
|
@@ -10092,10 +10122,10 @@ function pa({ tenant: e }) {
|
|
|
10092
10122
|
loading: "lazy"
|
|
10093
10123
|
}) : /* @__PURE__ */ T("span", {
|
|
10094
10124
|
className: "workspace-switcher-mark",
|
|
10095
|
-
children:
|
|
10125
|
+
children: pa(e?.name)
|
|
10096
10126
|
});
|
|
10097
10127
|
}
|
|
10098
|
-
function
|
|
10128
|
+
function ha(e, t) {
|
|
10099
10129
|
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
10100
10130
|
let { label: n, icon: r, href: i } = e;
|
|
10101
10131
|
return /* @__PURE__ */ E(i ? t ?? "a" : "button", {
|
|
@@ -10107,7 +10137,7 @@ function ma(e, t) {
|
|
|
10107
10137
|
}) : null, n]
|
|
10108
10138
|
});
|
|
10109
10139
|
}
|
|
10110
|
-
var
|
|
10140
|
+
var ga = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
|
|
10111
10141
|
return /* @__PURE__ */ E("button", {
|
|
10112
10142
|
ref: a,
|
|
10113
10143
|
type: "button",
|
|
@@ -10115,7 +10145,7 @@ var ha = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
10115
10145
|
"aria-haspopup": "true",
|
|
10116
10146
|
"aria-label": n,
|
|
10117
10147
|
...i,
|
|
10118
|
-
children: [/* @__PURE__ */ T(
|
|
10148
|
+
children: [/* @__PURE__ */ T(ma, { tenant: t }), e ? null : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
|
|
10119
10149
|
className: "workspace-switcher-trigger-name",
|
|
10120
10150
|
children: t?.name
|
|
10121
10151
|
}), /* @__PURE__ */ T(W, {
|
|
@@ -10127,36 +10157,36 @@ var ha = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
10127
10157
|
});
|
|
10128
10158
|
//#endregion
|
|
10129
10159
|
//#region src/components/toast.js
|
|
10130
|
-
function
|
|
10131
|
-
|
|
10160
|
+
function _a() {
|
|
10161
|
+
ea();
|
|
10132
10162
|
}
|
|
10133
|
-
var
|
|
10163
|
+
var va = /* @__PURE__ */ new Set([
|
|
10134
10164
|
"success",
|
|
10135
10165
|
"info",
|
|
10136
10166
|
"warning",
|
|
10137
10167
|
"danger"
|
|
10138
10168
|
]);
|
|
10139
|
-
function
|
|
10169
|
+
function ya(e, t = "info") {
|
|
10140
10170
|
let n = "info", r = {};
|
|
10141
|
-
typeof t == "string" ? n =
|
|
10171
|
+
typeof t == "string" ? n = va.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = va.has(r.variant) ? r.variant : "info"), Zi(e, n, r);
|
|
10142
10172
|
}
|
|
10143
|
-
function
|
|
10144
|
-
|
|
10173
|
+
function ba(e, t = {}) {
|
|
10174
|
+
Zi(e, "danger", t);
|
|
10145
10175
|
}
|
|
10146
|
-
|
|
10176
|
+
ya.promise = (e, t, n = {}) => {
|
|
10147
10177
|
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
10148
|
-
return
|
|
10178
|
+
return ya(t.loading || "Loading...", {
|
|
10149
10179
|
...n,
|
|
10150
10180
|
variant: "info",
|
|
10151
10181
|
id: r,
|
|
10152
10182
|
duration: 0
|
|
10153
|
-
}), e.then((e) => (
|
|
10183
|
+
}), e.then((e) => (ya((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
10154
10184
|
...n,
|
|
10155
10185
|
variant: "success",
|
|
10156
10186
|
id: r,
|
|
10157
10187
|
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
10158
10188
|
}), e)).catch((e) => {
|
|
10159
|
-
throw
|
|
10189
|
+
throw ya((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
10160
10190
|
...n,
|
|
10161
10191
|
variant: "danger",
|
|
10162
10192
|
id: r,
|
|
@@ -10166,7 +10196,7 @@ va.promise = (e, t, n = {}) => {
|
|
|
10166
10196
|
};
|
|
10167
10197
|
//#endregion
|
|
10168
10198
|
//#region src/lib/usePagination.js
|
|
10169
|
-
function
|
|
10199
|
+
function xa(e, t = 10) {
|
|
10170
10200
|
let [n, r] = d(1), [i, a] = d(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
|
|
10171
10201
|
o(() => {
|
|
10172
10202
|
n > c && r(c);
|
|
@@ -10192,4 +10222,4 @@ function ba(e, t = 10) {
|
|
|
10192
10222
|
};
|
|
10193
10223
|
}
|
|
10194
10224
|
//#endregion
|
|
10195
|
-
export { xe as AppAccordion, Se as AppActionIcon, Te as AppAlert, Me as AppAsyncBlock,
|
|
10225
|
+
export { xe as AppAccordion, Se as AppActionIcon, Te as AppAlert, Me as AppAsyncBlock, En as AppAutocomplete, Mn as AppAvatar, Fn as AppAvatarGroup, In as AppBadge, Rn as AppBanner, zn as AppBreadcrumbs, ke as AppButton, Vn as AppCallout, Un as AppCard, Gn as AppCheckbox, Kn as AppChip, qn as AppChoiceCard, Jn as AppChoiceChip, Yn as AppColorField, Xn as AppCompareTable, ar as AppConfirmDialog, sr as AppCopyButton, _r as AppDataTable, vr as AppDatePicker, yr as AppDateRangePicker, xr as AppDescriptions, wr as AppDropdown, Ae as AppEmptyState, Er as AppFeedback, Mr as AppFileAttachment, Pr as AppFilePicker, Fr as AppFloatingDock, Ir as AppFormActions, Lr as AppFormRow, Rr as AppFormSection, W as AppIcon, zr as AppInfoList, gn as AppInfoTip, Zn as AppInput, Wr as AppKpiTile, Jr as AppLink, Xr as AppLogoPicker, ei as AppMeter, nr as AppModal, ti as AppMultiSelect, ni as AppNumberInput, ri as AppOtpInput, ii as AppPageHeader, ai as AppPagination, oi as AppPhoneNumberInput, hn as AppPopover, si as AppPricingCard, ui as AppProgress, di as AppRadio, fi as AppRepeater, Q as AppRequiredMark, pi as AppResourceCard, hi as AppResult, gi as AppScrollbar, _i as AppSearch, vi as AppSegmented, bi as AppSelect, fr as AppSelectMini, xi as AppShell, wi as AppSidebarMenu, cr as AppSkeleton, lr as AppSkeletonRows, Ti as AppSlider, je as AppSpinner, Di as AppSplash, Oi as AppStatusBadge, ki as AppStepper, ji as AppSwitch, Mi as AppTableEmptyState, mr as AppTablePagination, Ii as AppTabs, Li as AppTagInput, Ri as AppTextarea, Vi as AppTimePicker, Bi as AppTimeline, sa as AppToast, la as AppToolbar, V as AppTooltip, ua as AppWizard, fa as AppWorkspaceSwitcher, ir as MODAL_ICONS, _a as dismissAll, ba as errorToast, ve as iconNames, be as registerIcons, ya as toast, xa as usePagination };
|