@ikas/core 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/color-picker/color-picker.stories.d.ts +10 -0
- package/dist/components/color-picker/color-picker.stories.d.ts.map +1 -0
- package/dist/components/color-picker/index.d.ts +13 -0
- package/dist/components/color-picker/index.d.ts.map +1 -0
- package/dist/components/copy-to-clipboard-button/index.d.ts +49 -0
- package/dist/components/copy-to-clipboard-button/index.d.ts.map +1 -0
- package/dist/components/custom-select/custom-select.stories.d.ts +17 -0
- package/dist/components/custom-select/custom-select.stories.d.ts.map +1 -0
- package/dist/components/custom-select/index.d.ts +55 -0
- package/dist/components/custom-select/index.d.ts.map +1 -0
- package/dist/components/datatable/cell/swatch.d.ts +14 -0
- package/dist/components/datatable/cell/swatch.d.ts.map +1 -0
- package/dist/components/datatable/cell.d.ts +22 -0
- package/dist/components/datatable/cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/checkbox-cell.d.ts +13 -0
- package/dist/components/datatable/cells/checkbox-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/header-cell.d.ts +11 -0
- package/dist/components/datatable/cells/header-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/image-select-cell.d.ts +11 -0
- package/dist/components/datatable/cells/image-select-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/number-cell.d.ts +11 -0
- package/dist/components/datatable/cells/number-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/price-cell.d.ts +10 -0
- package/dist/components/datatable/cells/price-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/product-cell.d.ts +13 -0
- package/dist/components/datatable/cells/product-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/select-cell.d.ts +11 -0
- package/dist/components/datatable/cells/select-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/summary-cell.d.ts +9 -0
- package/dist/components/datatable/cells/summary-cell.d.ts.map +1 -0
- package/dist/components/datatable/cells/text-cell.d.ts +11 -0
- package/dist/components/datatable/cells/text-cell.d.ts.map +1 -0
- package/dist/components/datatable/datatable.stories.d.ts +74 -0
- package/dist/components/datatable/datatable.stories.d.ts.map +1 -0
- package/dist/components/datatable/filter-search.d.ts +12 -0
- package/dist/components/datatable/filter-search.d.ts.map +1 -0
- package/dist/components/datatable/full-width-wrapper.d.ts +10 -0
- package/dist/components/datatable/full-width-wrapper.d.ts.map +1 -0
- package/dist/components/datatable/index.d.ts +20 -0
- package/dist/components/datatable/index.d.ts.map +1 -0
- package/dist/components/datatable/model.d.ts +202 -0
- package/dist/components/datatable/model.d.ts.map +1 -0
- package/dist/components/datatable/paginator.d.ts +8 -0
- package/dist/components/datatable/paginator.d.ts.map +1 -0
- package/dist/components/datatable/row.d.ts +12 -0
- package/dist/components/datatable/row.d.ts.map +1 -0
- package/dist/components/datatable/sticky-container.d.ts +8 -0
- package/dist/components/datatable/sticky-container.d.ts.map +1 -0
- package/dist/components/datatable/types.d.ts +272 -0
- package/dist/components/datatable/types.d.ts.map +1 -0
- package/dist/components/docs-drawer/docs-drawer.stories.d.ts +9 -0
- package/dist/components/docs-drawer/docs-drawer.stories.d.ts.map +1 -0
- package/dist/components/docs-drawer/index.d.ts +17 -0
- package/dist/components/docs-drawer/index.d.ts.map +1 -0
- package/dist/components/docs-help-trigger/index.d.ts +11 -0
- package/dist/components/docs-help-trigger/index.d.ts.map +1 -0
- package/dist/components/drawer/drawer.stories.d.ts +11 -0
- package/dist/components/drawer/drawer.stories.d.ts.map +1 -0
- package/dist/components/drawer/index.d.ts +41 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer-full-screen/index.d.ts +22 -0
- package/dist/components/drawer-full-screen/index.d.ts.map +1 -0
- package/dist/components/drawer-image/constants.d.ts +11 -0
- package/dist/components/drawer-image/constants.d.ts.map +1 -0
- package/dist/components/drawer-image/drawer-image.stories.d.ts +15 -0
- package/dist/components/drawer-image/drawer-image.stories.d.ts.map +1 -0
- package/dist/components/drawer-image/index.d.ts +4 -0
- package/dist/components/drawer-image/index.d.ts.map +1 -0
- package/dist/components/drawer-image/types.d.ts +61 -0
- package/dist/components/drawer-image/types.d.ts.map +1 -0
- package/dist/components/drawer-image/utils.d.ts +3 -0
- package/dist/components/drawer-image/utils.d.ts.map +1 -0
- package/dist/components/drawer-image-gallery/drawer-image-gallery.stories.d.ts +9 -0
- package/dist/components/drawer-image-gallery/drawer-image-gallery.stories.d.ts.map +1 -0
- package/dist/components/drawer-image-gallery/index.d.ts +11 -0
- package/dist/components/drawer-image-gallery/index.d.ts.map +1 -0
- package/dist/components/drawer-image-select/drawer-image-select.stories.d.ts +13 -0
- package/dist/components/drawer-image-select/drawer-image-select.stories.d.ts.map +1 -0
- package/dist/components/drawer-image-select/index.d.ts +5 -0
- package/dist/components/drawer-image-select/index.d.ts.map +1 -0
- package/dist/components/filter-manager/arrangable-columns-popover-content.d.ts +10 -0
- package/dist/components/filter-manager/arrangable-columns-popover-content.d.ts.map +1 -0
- package/dist/components/filter-manager/delete-filter-popover.d.ts +12 -0
- package/dist/components/filter-manager/delete-filter-popover.d.ts.map +1 -0
- package/dist/components/filter-manager/filter-info-tag.d.ts +15 -0
- package/dist/components/filter-manager/filter-info-tag.d.ts.map +1 -0
- package/dist/components/filter-manager/filter-manager.stories.d.ts +57 -0
- package/dist/components/filter-manager/filter-manager.stories.d.ts.map +1 -0
- package/dist/components/filter-manager/filter-popover-content.d.ts +13 -0
- package/dist/components/filter-manager/filter-popover-content.d.ts.map +1 -0
- package/dist/components/filter-manager/filter-row.d.ts +14 -0
- package/dist/components/filter-manager/filter-row.d.ts.map +1 -0
- package/dist/components/filter-manager/filter-sort-modal.d.ts +12 -0
- package/dist/components/filter-manager/filter-sort-modal.d.ts.map +1 -0
- package/dist/components/filter-manager/filter-string-input.d.ts +13 -0
- package/dist/components/filter-manager/filter-string-input.d.ts.map +1 -0
- package/dist/components/filter-manager/helpers.d.ts +22 -0
- package/dist/components/filter-manager/helpers.d.ts.map +1 -0
- package/dist/components/filter-manager/index.d.ts +29 -0
- package/dist/components/filter-manager/index.d.ts.map +1 -0
- package/dist/components/filter-manager/model.d.ts +88 -0
- package/dist/components/filter-manager/model.d.ts.map +1 -0
- package/dist/components/filter-manager/save-filter-popover.d.ts +13 -0
- package/dist/components/filter-manager/save-filter-popover.d.ts.map +1 -0
- package/dist/components/filter-manager/types.d.ts +86 -0
- package/dist/components/filter-manager/types.d.ts.map +1 -0
- package/dist/components/image-select/box-wrapper.d.ts +7 -0
- package/dist/components/image-select/box-wrapper.d.ts.map +1 -0
- package/dist/components/image-select/image-select.stories.d.ts +20 -0
- package/dist/components/image-select/image-select.stories.d.ts.map +1 -0
- package/dist/components/image-select/index.d.ts +21 -0
- package/dist/components/image-select/index.d.ts.map +1 -0
- package/dist/components/image-select/upload-wrapper.d.ts +15 -0
- package/dist/components/image-select/upload-wrapper.d.ts.map +1 -0
- package/dist/components/image-select/use-image-select.d.ts +22 -0
- package/dist/components/image-select/use-image-select.d.ts.map +1 -0
- package/dist/components/navigation/expanded-overlay.d.ts +29 -0
- package/dist/components/navigation/expanded-overlay.d.ts.map +1 -0
- package/dist/components/navigation/icons.d.ts +19 -0
- package/dist/components/navigation/icons.d.ts.map +1 -0
- package/dist/components/navigation/index.d.ts +29 -0
- package/dist/components/navigation/index.d.ts.map +1 -0
- package/dist/components/navigation/navigation-footer.d.ts +15 -0
- package/dist/components/navigation/navigation-footer.d.ts.map +1 -0
- package/dist/components/navigation/navigation-header.d.ts +32 -0
- package/dist/components/navigation/navigation-header.d.ts.map +1 -0
- package/dist/components/navigation/navigation-menu.d.ts +28 -0
- package/dist/components/navigation/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation/navigation.stories.d.ts +14 -0
- package/dist/components/navigation/navigation.stories.d.ts.map +1 -0
- package/dist/components/navigation/sales-channel-menu.d.ts +16 -0
- package/dist/components/navigation/sales-channel-menu.d.ts.map +1 -0
- package/dist/components/navigation/types.d.ts +88 -0
- package/dist/components/navigation/types.d.ts.map +1 -0
- package/dist/components/navigation/use-navigation.d.ts +28 -0
- package/dist/components/navigation/use-navigation.d.ts.map +1 -0
- package/dist/components/page-container/index.d.ts +24 -0
- package/dist/components/page-container/index.d.ts.map +1 -0
- package/dist/components/page-container/style.d.ts +16 -0
- package/dist/components/page-container/style.d.ts.map +1 -0
- package/dist/components/rich-text-editor/image-modal/index.d.ts +19 -0
- package/dist/components/rich-text-editor/image-modal/index.d.ts.map +1 -0
- package/dist/components/rich-text-editor/index.d.ts +66 -0
- package/dist/components/rich-text-editor/index.d.ts.map +1 -0
- package/dist/components/rich-text-editor/link-modal/index.d.ts +26 -0
- package/dist/components/rich-text-editor/link-modal/index.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.stories.d.ts +10 -0
- package/dist/components/rich-text-editor/rich-text-editor.stories.d.ts.map +1 -0
- package/dist/components/rich-text-editor/style.d.ts +18 -0
- package/dist/components/rich-text-editor/style.d.ts.map +1 -0
- package/dist/components/rich-text-editor/translations.d.ts +17 -0
- package/dist/components/rich-text-editor/translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/types.d.ts +9 -0
- package/dist/components/rich-text-editor/types.d.ts.map +1 -0
- package/dist/components/rich-text-editor/video-modal/index.d.ts +17 -0
- package/dist/components/rich-text-editor/video-modal/index.d.ts.map +1 -0
- package/dist/components/search/brand-search-dropdown/brand-search-dropdown.stories.d.ts +11 -0
- package/dist/components/search/brand-search-dropdown/brand-search-dropdown.stories.d.ts.map +1 -0
- package/dist/components/search/brand-search-dropdown/index.d.ts +17 -0
- package/dist/components/search/brand-search-dropdown/index.d.ts.map +1 -0
- package/dist/components/search/category-search/category-search.stories.d.ts +11 -0
- package/dist/components/search/category-search/category-search.stories.d.ts.map +1 -0
- package/dist/components/search/category-search/index.d.ts +21 -0
- package/dist/components/search/category-search/index.d.ts.map +1 -0
- package/dist/components/search/category-select/category-select.stories.d.ts +11 -0
- package/dist/components/search/category-select/category-select.stories.d.ts.map +1 -0
- package/dist/components/search/category-select/index.d.ts +25 -0
- package/dist/components/search/category-select/index.d.ts.map +1 -0
- package/dist/components/search/country-select/country-select.stories.d.ts +11 -0
- package/dist/components/search/country-select/country-select.stories.d.ts.map +1 -0
- package/dist/components/search/country-select/index.d.ts +30 -0
- package/dist/components/search/country-select/index.d.ts.map +1 -0
- package/dist/components/search/product-search-dropdown/index.d.ts +21 -0
- package/dist/components/search/product-search-dropdown/index.d.ts.map +1 -0
- package/dist/components/search/product-search-dropdown/product-search-dropdown.stories.d.ts +11 -0
- package/dist/components/search/product-search-dropdown/product-search-dropdown.stories.d.ts.map +1 -0
- package/dist/components/search/raffle-search-dropdown/index.d.ts +30 -0
- package/dist/components/search/raffle-search-dropdown/index.d.ts.map +1 -0
- package/dist/components/search/raffle-search-dropdown/raffle-search-dropdown.stories.d.ts +10 -0
- package/dist/components/search/raffle-search-dropdown/raffle-search-dropdown.stories.d.ts.map +1 -0
- package/dist/components/search/variant-search-dropdown/index.d.ts +38 -0
- package/dist/components/search/variant-search-dropdown/index.d.ts.map +1 -0
- package/dist/components/search/variant-search-dropdown/variant-search-dropdown.stories.d.ts +10 -0
- package/dist/components/search/variant-search-dropdown/variant-search-dropdown.stories.d.ts.map +1 -0
- package/dist/components/single-image-upload/index.d.ts +8 -0
- package/dist/components/single-image-upload/index.d.ts.map +1 -0
- package/dist/components/single-image-upload/single-image-upload.stories.d.ts +12 -0
- package/dist/components/single-image-upload/single-image-upload.stories.d.ts.map +1 -0
- package/dist/components/swatch-picker/index.d.ts +12 -0
- package/dist/components/swatch-picker/index.d.ts.map +1 -0
- package/dist/components/swatch-picker/swatch-picker.stories.d.ts +9 -0
- package/dist/components/swatch-picker/swatch-picker.stories.d.ts.map +1 -0
- package/dist/components/variable-input/index.d.ts +22 -0
- package/dist/components/variable-input/index.d.ts.map +1 -0
- package/dist/components/variable-input/variable-input.stories.d.ts +12 -0
- package/dist/components/variable-input/variable-input.stories.d.ts.map +1 -0
- package/dist/core.css +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +110 -0
- package/dist/index10.cjs +1 -0
- package/dist/index10.js +29 -0
- package/dist/index100.cjs +470 -0
- package/dist/index100.js +484 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +157 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +157 -0
- package/dist/index103.cjs +1 -0
- package/dist/index103.js +156 -0
- package/dist/index104.cjs +1 -0
- package/dist/index104.js +101 -0
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +165 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +121 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +225 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +167 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +371 -0
- package/dist/index11.cjs +1 -0
- package/dist/index11.js +141 -0
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +207 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +77 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +50 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +242 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +85 -0
- package/dist/index115.cjs +6 -0
- package/dist/index115.js +29 -0
- package/dist/index116.cjs +6 -0
- package/dist/index116.js +16 -0
- package/dist/index117.cjs +6 -0
- package/dist/index117.js +16 -0
- package/dist/index118.cjs +6 -0
- package/dist/index118.js +15 -0
- package/dist/index119.cjs +6 -0
- package/dist/index119.js +17 -0
- package/dist/index12.cjs +1 -0
- package/dist/index12.js +53 -0
- package/dist/index120.cjs +6 -0
- package/dist/index120.js +12 -0
- package/dist/index121.cjs +6 -0
- package/dist/index121.js +15 -0
- package/dist/index122.cjs +6 -0
- package/dist/index122.js +19 -0
- package/dist/index123.cjs +6 -0
- package/dist/index123.js +10 -0
- package/dist/index124.cjs +6 -0
- package/dist/index124.js +10 -0
- package/dist/index125.cjs +6 -0
- package/dist/index125.js +14 -0
- package/dist/index126.cjs +6 -0
- package/dist/index126.js +42 -0
- package/dist/index127.cjs +6 -0
- package/dist/index127.js +20 -0
- package/dist/index128.cjs +6 -0
- package/dist/index128.js +15 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +6 -0
- package/dist/index13.cjs +1 -0
- package/dist/index13.js +31 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +10 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +9 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +282 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +4 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +33 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +4 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +406 -0
- package/dist/index137.cjs +6 -0
- package/dist/index137.js +13 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +6 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +8 -0
- package/dist/index14.cjs +1 -0
- package/dist/index14.js +452 -0
- package/dist/index140.cjs +3 -0
- package/dist/index140.js +148 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +33 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +146 -0
- package/dist/index143.cjs +15 -0
- package/dist/index143.js +139 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +89 -0
- package/dist/index145.cjs +11 -0
- package/dist/index145.js +150 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +85 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +52 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +26 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +7 -0
- package/dist/index15.cjs +1 -0
- package/dist/index15.js +5 -0
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +8 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +46 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +52 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +11 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +21 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +60 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +288 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +21 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +20 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +66 -0
- package/dist/index16.cjs +1 -0
- package/dist/index16.js +98 -0
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +115 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +44 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +26 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +169 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +25 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +59 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +35 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +53 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +135 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +83 -0
- package/dist/index17.cjs +1 -0
- package/dist/index17.js +444 -0
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +82 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +21 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +35 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +33 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +33 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +177 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +54 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +113 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +17 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +4 -0
- package/dist/index18.cjs +1 -0
- package/dist/index18.js +152 -0
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +10 -0
- package/dist/index181.cjs +2 -0
- package/dist/index181.js +329 -0
- package/dist/index182.cjs +1 -0
- package/dist/index182.js +52 -0
- package/dist/index183.cjs +1 -0
- package/dist/index183.js +29 -0
- package/dist/index184.cjs +1 -0
- package/dist/index184.js +4 -0
- package/dist/index185.cjs +1 -0
- package/dist/index185.js +30 -0
- package/dist/index186.cjs +1 -0
- package/dist/index186.js +34 -0
- package/dist/index187.cjs +1 -0
- package/dist/index187.js +118 -0
- package/dist/index188.cjs +1 -0
- package/dist/index188.js +62 -0
- package/dist/index189.cjs +1 -0
- package/dist/index189.js +62 -0
- package/dist/index19.cjs +1 -0
- package/dist/index19.js +114 -0
- package/dist/index190.cjs +1 -0
- package/dist/index190.js +19 -0
- package/dist/index191.cjs +1 -0
- package/dist/index191.js +20 -0
- package/dist/index192.cjs +1 -0
- package/dist/index192.js +15 -0
- package/dist/index193.cjs +1 -0
- package/dist/index193.js +11 -0
- package/dist/index194.cjs +1 -0
- package/dist/index194.js +8 -0
- package/dist/index195.cjs +1 -0
- package/dist/index195.js +11 -0
- package/dist/index196.cjs +1 -0
- package/dist/index196.js +11 -0
- package/dist/index197.cjs +1 -0
- package/dist/index197.js +4 -0
- package/dist/index198.cjs +1 -0
- package/dist/index198.js +6 -0
- package/dist/index199.cjs +1 -0
- package/dist/index199.js +7 -0
- package/dist/index20.cjs +1 -0
- package/dist/index20.js +94 -0
- package/dist/index200.cjs +1 -0
- package/dist/index200.js +42 -0
- package/dist/index201.cjs +1 -0
- package/dist/index201.js +85 -0
- package/dist/index202.cjs +1 -0
- package/dist/index202.js +7 -0
- package/dist/index203.cjs +1 -0
- package/dist/index203.js +7 -0
- package/dist/index204.cjs +1 -0
- package/dist/index204.js +22 -0
- package/dist/index205.cjs +1 -0
- package/dist/index205.js +4 -0
- package/dist/index206.cjs +1 -0
- package/dist/index206.js +4 -0
- package/dist/index207.cjs +1 -0
- package/dist/index207.js +4 -0
- package/dist/index208.cjs +1 -0
- package/dist/index208.js +4 -0
- package/dist/index209.cjs +1 -0
- package/dist/index209.js +4 -0
- package/dist/index21.cjs +1 -0
- package/dist/index21.js +52 -0
- package/dist/index210.cjs +1 -0
- package/dist/index210.js +4 -0
- package/dist/index211.cjs +1 -0
- package/dist/index211.js +4 -0
- package/dist/index212.cjs +8 -0
- package/dist/index212.js +78 -0
- package/dist/index213.cjs +8 -0
- package/dist/index213.js +95 -0
- package/dist/index214.cjs +5 -0
- package/dist/index214.js +54 -0
- package/dist/index215.cjs +1 -0
- package/dist/index215.js +10 -0
- package/dist/index216.cjs +1 -0
- package/dist/index216.js +7 -0
- package/dist/index217.cjs +1 -0
- package/dist/index217.js +54 -0
- package/dist/index218.cjs +1 -0
- package/dist/index218.js +73 -0
- package/dist/index219.cjs +1 -0
- package/dist/index219.js +21 -0
- package/dist/index22.cjs +1 -0
- package/dist/index22.js +125 -0
- package/dist/index220.cjs +1 -0
- package/dist/index220.js +37 -0
- package/dist/index221.cjs +1 -0
- package/dist/index221.js +52 -0
- package/dist/index222.cjs +1 -0
- package/dist/index222.js +42 -0
- package/dist/index223.cjs +1 -0
- package/dist/index223.js +94 -0
- package/dist/index224.cjs +1 -0
- package/dist/index224.js +62 -0
- package/dist/index225.cjs +1 -0
- package/dist/index225.js +28 -0
- package/dist/index226.cjs +1 -0
- package/dist/index226.js +18 -0
- package/dist/index227.cjs +1 -0
- package/dist/index227.js +44 -0
- package/dist/index228.cjs +1 -0
- package/dist/index228.js +16 -0
- package/dist/index229.cjs +1 -0
- package/dist/index229.js +15 -0
- package/dist/index23.cjs +1 -0
- package/dist/index23.js +41 -0
- package/dist/index230.cjs +1 -0
- package/dist/index230.js +63 -0
- package/dist/index231.cjs +1 -0
- package/dist/index231.js +18 -0
- package/dist/index232.cjs +1 -0
- package/dist/index232.js +8 -0
- package/dist/index233.cjs +1 -0
- package/dist/index233.js +5 -0
- package/dist/index234.cjs +1 -0
- package/dist/index234.js +31 -0
- package/dist/index235.cjs +1 -0
- package/dist/index235.js +9 -0
- package/dist/index236.cjs +1 -0
- package/dist/index236.js +7 -0
- package/dist/index237.cjs +1 -0
- package/dist/index237.js +9 -0
- package/dist/index238.cjs +1 -0
- package/dist/index238.js +13 -0
- package/dist/index239.cjs +1 -0
- package/dist/index239.js +12 -0
- package/dist/index24.cjs +1 -0
- package/dist/index24.js +57 -0
- package/dist/index240.cjs +1 -0
- package/dist/index240.js +17 -0
- package/dist/index241.cjs +1 -0
- package/dist/index241.js +6 -0
- package/dist/index242.cjs +1 -0
- package/dist/index242.js +10 -0
- package/dist/index243.cjs +1 -0
- package/dist/index243.js +6 -0
- package/dist/index244.cjs +1 -0
- package/dist/index244.js +8 -0
- package/dist/index245.cjs +1 -0
- package/dist/index245.js +41 -0
- package/dist/index246.cjs +1 -0
- package/dist/index246.js +4 -0
- package/dist/index247.cjs +1 -0
- package/dist/index247.js +5 -0
- package/dist/index248.cjs +1 -0
- package/dist/index248.js +8 -0
- package/dist/index249.cjs +1 -0
- package/dist/index249.js +9 -0
- package/dist/index25.cjs +1 -0
- package/dist/index25.js +203 -0
- package/dist/index250.cjs +1 -0
- package/dist/index250.js +7 -0
- package/dist/index251.cjs +1 -0
- package/dist/index251.js +4 -0
- package/dist/index252.cjs +1 -0
- package/dist/index252.js +4 -0
- package/dist/index253.cjs +5 -0
- package/dist/index253.js +2964 -0
- package/dist/index254.cjs +1 -0
- package/dist/index254.js +4 -0
- package/dist/index255.cjs +1 -0
- package/dist/index255.js +7 -0
- package/dist/index256.cjs +1 -0
- package/dist/index256.js +8 -0
- package/dist/index257.cjs +1 -0
- package/dist/index257.js +7 -0
- package/dist/index258.cjs +1 -0
- package/dist/index258.js +15 -0
- package/dist/index259.cjs +1 -0
- package/dist/index259.js +6 -0
- package/dist/index26.cjs +1 -0
- package/dist/index26.js +74 -0
- package/dist/index260.cjs +1 -0
- package/dist/index260.js +6 -0
- package/dist/index261.cjs +1 -0
- package/dist/index261.js +8 -0
- package/dist/index262.cjs +1 -0
- package/dist/index262.js +20 -0
- package/dist/index263.cjs +1 -0
- package/dist/index263.js +7 -0
- package/dist/index264.cjs +1 -0
- package/dist/index264.js +7 -0
- package/dist/index265.cjs +1 -0
- package/dist/index265.js +6 -0
- package/dist/index266.cjs +1 -0
- package/dist/index266.js +6 -0
- package/dist/index267.cjs +1 -0
- package/dist/index267.js +17 -0
- package/dist/index268.cjs +1 -0
- package/dist/index268.js +12 -0
- package/dist/index269.cjs +1 -0
- package/dist/index269.js +13 -0
- package/dist/index27.cjs +1 -0
- package/dist/index27.js +89 -0
- package/dist/index270.cjs +1 -0
- package/dist/index270.js +9 -0
- package/dist/index271.cjs +1 -0
- package/dist/index271.js +8 -0
- package/dist/index272.cjs +1 -0
- package/dist/index272.js +9 -0
- package/dist/index273.cjs +1 -0
- package/dist/index273.js +9 -0
- package/dist/index274.cjs +1 -0
- package/dist/index274.js +10 -0
- package/dist/index275.cjs +1 -0
- package/dist/index275.js +8 -0
- package/dist/index276.cjs +1 -0
- package/dist/index276.js +6 -0
- package/dist/index277.cjs +1 -0
- package/dist/index277.js +12 -0
- package/dist/index278.cjs +1 -0
- package/dist/index278.js +16 -0
- package/dist/index279.cjs +1 -0
- package/dist/index279.js +7 -0
- package/dist/index28.cjs +1 -0
- package/dist/index28.js +123 -0
- package/dist/index280.cjs +1 -0
- package/dist/index280.js +8 -0
- package/dist/index281.cjs +1 -0
- package/dist/index281.js +20 -0
- package/dist/index282.cjs +1 -0
- package/dist/index282.js +15 -0
- package/dist/index283.cjs +1 -0
- package/dist/index283.js +9 -0
- package/dist/index284.cjs +1 -0
- package/dist/index284.js +10 -0
- package/dist/index285.cjs +1 -0
- package/dist/index285.js +6 -0
- package/dist/index286.cjs +1 -0
- package/dist/index286.js +4 -0
- package/dist/index287.cjs +1 -0
- package/dist/index287.js +8 -0
- package/dist/index288.cjs +1 -0
- package/dist/index288.js +15 -0
- package/dist/index289.cjs +1 -0
- package/dist/index289.js +7 -0
- package/dist/index29.cjs +1 -0
- package/dist/index29.js +87 -0
- package/dist/index290.cjs +1 -0
- package/dist/index290.js +29 -0
- package/dist/index291.cjs +1 -0
- package/dist/index291.js +12 -0
- package/dist/index292.cjs +1 -0
- package/dist/index292.js +8 -0
- package/dist/index293.cjs +1 -0
- package/dist/index293.js +8 -0
- package/dist/index294.cjs +1 -0
- package/dist/index294.js +8 -0
- package/dist/index295.cjs +1 -0
- package/dist/index295.js +8 -0
- package/dist/index296.cjs +1 -0
- package/dist/index296.js +12 -0
- package/dist/index297.cjs +1 -0
- package/dist/index297.js +7 -0
- package/dist/index298.cjs +1 -0
- package/dist/index298.js +10 -0
- package/dist/index299.cjs +1 -0
- package/dist/index299.js +8 -0
- package/dist/index3.cjs +1 -0
- package/dist/index3.js +8 -0
- package/dist/index30.cjs +1 -0
- package/dist/index30.js +79 -0
- package/dist/index300.cjs +1 -0
- package/dist/index300.js +9 -0
- package/dist/index301.cjs +1 -0
- package/dist/index301.js +41 -0
- package/dist/index302.cjs +1 -0
- package/dist/index302.js +4 -0
- package/dist/index303.cjs +1 -0
- package/dist/index303.js +16 -0
- package/dist/index304.cjs +1 -0
- package/dist/index304.js +14 -0
- package/dist/index305.cjs +1 -0
- package/dist/index305.js +16 -0
- package/dist/index306.cjs +1 -0
- package/dist/index306.js +6 -0
- package/dist/index307.cjs +1 -0
- package/dist/index307.js +12 -0
- package/dist/index308.cjs +1 -0
- package/dist/index308.js +8 -0
- package/dist/index309.cjs +1 -0
- package/dist/index309.js +7 -0
- package/dist/index31.cjs +1 -0
- package/dist/index31.js +186 -0
- package/dist/index310.cjs +1 -0
- package/dist/index310.js +8 -0
- package/dist/index311.cjs +1 -0
- package/dist/index311.js +6 -0
- package/dist/index312.cjs +1 -0
- package/dist/index312.js +20 -0
- package/dist/index313.cjs +1 -0
- package/dist/index313.js +11 -0
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +8 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +8 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +10 -0
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +8 -0
- package/dist/index318.cjs +1 -0
- package/dist/index318.js +17 -0
- package/dist/index319.cjs +1 -0
- package/dist/index319.js +5 -0
- package/dist/index32.cjs +1 -0
- package/dist/index32.js +70 -0
- package/dist/index320.cjs +1 -0
- package/dist/index320.js +9 -0
- package/dist/index321.cjs +1 -0
- package/dist/index321.js +6 -0
- package/dist/index322.cjs +1 -0
- package/dist/index322.js +12 -0
- package/dist/index323.cjs +1 -0
- package/dist/index323.js +8 -0
- package/dist/index324.cjs +1 -0
- package/dist/index324.js +11 -0
- package/dist/index325.cjs +1 -0
- package/dist/index325.js +14 -0
- package/dist/index326.cjs +1 -0
- package/dist/index326.js +5 -0
- package/dist/index327.cjs +1 -0
- package/dist/index327.js +15 -0
- package/dist/index328.cjs +1 -0
- package/dist/index328.js +7 -0
- package/dist/index329.cjs +1 -0
- package/dist/index329.js +11 -0
- package/dist/index33.cjs +1 -0
- package/dist/index33.js +400 -0
- package/dist/index330.cjs +1 -0
- package/dist/index330.js +9 -0
- package/dist/index331.cjs +1 -0
- package/dist/index331.js +32 -0
- package/dist/index332.cjs +1 -0
- package/dist/index332.js +6 -0
- package/dist/index333.cjs +1 -0
- package/dist/index333.js +19 -0
- package/dist/index334.cjs +1 -0
- package/dist/index334.js +78 -0
- package/dist/index335.cjs +1 -0
- package/dist/index335.js +8 -0
- package/dist/index336.cjs +1 -0
- package/dist/index336.js +10 -0
- package/dist/index337.cjs +1 -0
- package/dist/index337.js +9 -0
- package/dist/index338.cjs +1 -0
- package/dist/index338.js +13 -0
- package/dist/index339.cjs +1 -0
- package/dist/index339.js +8 -0
- package/dist/index34.cjs +1 -0
- package/dist/index34.js +51 -0
- package/dist/index340.cjs +1 -0
- package/dist/index340.js +7 -0
- package/dist/index341.cjs +1 -0
- package/dist/index341.js +7 -0
- package/dist/index342.cjs +1 -0
- package/dist/index342.js +8 -0
- package/dist/index343.cjs +1 -0
- package/dist/index343.js +8 -0
- package/dist/index344.cjs +1 -0
- package/dist/index344.js +10 -0
- package/dist/index345.cjs +1 -0
- package/dist/index345.js +5 -0
- package/dist/index346.cjs +1 -0
- package/dist/index346.js +10 -0
- package/dist/index347.cjs +1 -0
- package/dist/index347.js +14 -0
- package/dist/index348.cjs +1 -0
- package/dist/index348.js +40 -0
- package/dist/index349.cjs +1 -0
- package/dist/index349.js +45 -0
- package/dist/index35.cjs +1 -0
- package/dist/index35.js +212 -0
- package/dist/index350.cjs +1 -0
- package/dist/index350.js +36 -0
- package/dist/index351.cjs +1 -0
- package/dist/index351.js +28 -0
- package/dist/index352.cjs +1 -0
- package/dist/index352.js +16 -0
- package/dist/index353.cjs +1 -0
- package/dist/index353.js +6 -0
- package/dist/index354.cjs +1 -0
- package/dist/index354.js +20 -0
- package/dist/index355.cjs +1 -0
- package/dist/index355.js +8 -0
- package/dist/index356.cjs +1 -0
- package/dist/index356.js +5 -0
- package/dist/index357.cjs +1 -0
- package/dist/index357.js +13 -0
- package/dist/index358.cjs +1 -0
- package/dist/index358.js +9 -0
- package/dist/index359.cjs +1 -0
- package/dist/index359.js +6 -0
- package/dist/index36.cjs +1 -0
- package/dist/index36.js +22 -0
- package/dist/index360.cjs +1 -0
- package/dist/index360.js +9 -0
- package/dist/index361.cjs +1 -0
- package/dist/index361.js +9 -0
- package/dist/index362.cjs +1 -0
- package/dist/index362.js +9 -0
- package/dist/index363.cjs +1 -0
- package/dist/index363.js +6 -0
- package/dist/index364.cjs +1 -0
- package/dist/index364.js +6 -0
- package/dist/index365.cjs +1 -0
- package/dist/index365.js +6 -0
- package/dist/index366.cjs +1 -0
- package/dist/index366.js +6 -0
- package/dist/index367.cjs +1 -0
- package/dist/index367.js +17 -0
- package/dist/index368.cjs +1 -0
- package/dist/index368.js +10 -0
- package/dist/index369.cjs +1 -0
- package/dist/index369.js +7 -0
- package/dist/index37.cjs +1 -0
- package/dist/index37.js +18 -0
- package/dist/index370.cjs +1 -0
- package/dist/index370.js +11 -0
- package/dist/index371.cjs +1 -0
- package/dist/index371.js +7 -0
- package/dist/index372.cjs +1 -0
- package/dist/index372.js +7 -0
- package/dist/index373.cjs +1 -0
- package/dist/index373.js +13 -0
- package/dist/index374.cjs +1 -0
- package/dist/index374.js +9 -0
- package/dist/index375.cjs +1 -0
- package/dist/index375.js +9 -0
- package/dist/index376.cjs +1 -0
- package/dist/index376.js +7 -0
- package/dist/index377.cjs +1 -0
- package/dist/index377.js +7 -0
- package/dist/index378.cjs +1 -0
- package/dist/index378.js +6 -0
- package/dist/index379.cjs +1 -0
- package/dist/index379.js +11 -0
- package/dist/index38.cjs +1 -0
- package/dist/index38.js +126 -0
- package/dist/index380.cjs +1 -0
- package/dist/index380.js +18 -0
- package/dist/index381.cjs +1 -0
- package/dist/index381.js +9 -0
- package/dist/index382.cjs +1 -0
- package/dist/index382.js +10 -0
- package/dist/index383.cjs +1 -0
- package/dist/index383.js +5 -0
- package/dist/index384.cjs +1 -0
- package/dist/index384.js +5 -0
- package/dist/index385.cjs +1 -0
- package/dist/index385.js +18 -0
- package/dist/index386.cjs +1 -0
- package/dist/index386.js +8 -0
- package/dist/index387.cjs +1 -0
- package/dist/index387.js +10 -0
- package/dist/index388.cjs +1 -0
- package/dist/index388.js +6 -0
- package/dist/index389.cjs +14 -0
- package/dist/index389.js +6860 -0
- package/dist/index39.cjs +1 -0
- package/dist/index39.js +78 -0
- package/dist/index390.cjs +1 -0
- package/dist/index390.js +4 -0
- package/dist/index4.cjs +1 -0
- package/dist/index4.js +6 -0
- package/dist/index40.cjs +1 -0
- package/dist/index40.js +54 -0
- package/dist/index41.cjs +1 -0
- package/dist/index41.js +207 -0
- package/dist/index42.cjs +1 -0
- package/dist/index42.js +397 -0
- package/dist/index43.cjs +1 -0
- package/dist/index43.js +235 -0
- package/dist/index44.cjs +1 -0
- package/dist/index44.js +122 -0
- package/dist/index45.cjs +1 -0
- package/dist/index45.js +16 -0
- package/dist/index46.cjs +1 -0
- package/dist/index46.js +2266 -0
- package/dist/index47.cjs +1 -0
- package/dist/index47.js +218 -0
- package/dist/index48.cjs +1 -0
- package/dist/index48.js +13 -0
- package/dist/index49.cjs +1 -0
- package/dist/index49.js +111 -0
- package/dist/index5.cjs +1 -0
- package/dist/index5.js +157 -0
- package/dist/index50.cjs +1 -0
- package/dist/index50.js +71 -0
- package/dist/index51.cjs +1 -0
- package/dist/index51.js +213 -0
- package/dist/index52.cjs +6 -0
- package/dist/index52.js +21 -0
- package/dist/index53.cjs +6 -0
- package/dist/index53.js +21 -0
- package/dist/index54.cjs +1 -0
- package/dist/index54.js +7 -0
- package/dist/index55.cjs +1 -0
- package/dist/index55.js +7 -0
- package/dist/index56.cjs +1 -0
- package/dist/index56.js +61 -0
- package/dist/index57.cjs +1 -0
- package/dist/index57.js +50 -0
- package/dist/index58.cjs +1 -0
- package/dist/index58.js +28 -0
- package/dist/index59.cjs +1 -0
- package/dist/index59.js +90 -0
- package/dist/index6.cjs +1 -0
- package/dist/index6.js +26 -0
- package/dist/index60.cjs +1 -0
- package/dist/index60.js +80 -0
- package/dist/index61.cjs +6 -0
- package/dist/index61.js +12 -0
- package/dist/index62.cjs +6 -0
- package/dist/index62.js +20 -0
- package/dist/index63.cjs +6 -0
- package/dist/index63.js +21 -0
- package/dist/index64.cjs +6 -0
- package/dist/index64.js +15 -0
- package/dist/index65.cjs +95 -0
- package/dist/index65.js +109 -0
- package/dist/index66.cjs +6 -0
- package/dist/index66.js +16 -0
- package/dist/index67.cjs +6 -0
- package/dist/index67.js +16 -0
- package/dist/index68.cjs +6 -0
- package/dist/index68.js +12 -0
- package/dist/index69.cjs +6 -0
- package/dist/index69.js +12 -0
- package/dist/index7.cjs +1 -0
- package/dist/index7.js +550 -0
- package/dist/index70.cjs +6 -0
- package/dist/index70.js +21 -0
- package/dist/index71.cjs +6 -0
- package/dist/index71.js +18 -0
- package/dist/index72.cjs +6 -0
- package/dist/index72.js +21 -0
- package/dist/index73.cjs +6 -0
- package/dist/index73.js +28 -0
- package/dist/index74.cjs +1 -0
- package/dist/index74.js +45 -0
- package/dist/index75.cjs +1 -0
- package/dist/index75.js +30 -0
- package/dist/index76.cjs +1 -0
- package/dist/index76.js +93 -0
- package/dist/index77.cjs +6 -0
- package/dist/index77.js +15 -0
- package/dist/index78.cjs +6 -0
- package/dist/index78.js +21 -0
- package/dist/index79.cjs +6 -0
- package/dist/index79.js +16 -0
- package/dist/index8.cjs +1 -0
- package/dist/index8.js +119 -0
- package/dist/index80.cjs +1 -0
- package/dist/index80.js +55 -0
- package/dist/index81.cjs +1 -0
- package/dist/index81.js +118 -0
- package/dist/index82.cjs +1 -0
- package/dist/index82.js +62 -0
- package/dist/index83.cjs +1 -0
- package/dist/index83.js +180 -0
- package/dist/index84.cjs +1 -0
- package/dist/index84.js +75 -0
- package/dist/index85.cjs +1 -0
- package/dist/index85.js +131 -0
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +60 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +142 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +186 -0
- package/dist/index89.cjs +1 -0
- package/dist/index89.js +171 -0
- package/dist/index9.cjs +1 -0
- package/dist/index9.js +208 -0
- package/dist/index90.cjs +1 -0
- package/dist/index90.js +57 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +80 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +173 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +136 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +711 -0
- package/dist/index96.cjs +6 -0
- package/dist/index96.js +15 -0
- package/dist/index97.cjs +6 -0
- package/dist/index97.js +12 -0
- package/dist/index98.cjs +6 -0
- package/dist/index98.js +15 -0
- package/dist/index99.cjs +1 -0
- package/dist/index99.js +24 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/validator.d.ts +12 -0
- package/dist/models/validator.d.ts.map +1 -0
- package/dist/utils/color.d.ts +19 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +6 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/translations.d.ts +153 -0
- package/dist/utils/translations.d.ts.map +1 -0
- package/package.json +88 -0
package/dist/index334.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as g, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useMemo as m } from "react";
|
|
3
|
+
import { observer as C } from "mobx-react-lite";
|
|
4
|
+
import { Select as S } from "@ikas/ui";
|
|
5
|
+
import { coreTranslations as w } from "./index5.js";
|
|
6
|
+
import T from "./index121.js";
|
|
7
|
+
const y = 5;
|
|
8
|
+
function L(l) {
|
|
9
|
+
return l.length > y ? `${l.slice(0, y)}...` : l;
|
|
10
|
+
}
|
|
11
|
+
function V(l) {
|
|
12
|
+
var d;
|
|
13
|
+
const { filterRow: i, model: s, onChange: p } = l, [n, f] = x(""), o = i.filterValue.value || [], h = m(() => {
|
|
14
|
+
switch (s.locale) {
|
|
15
|
+
case "tr":
|
|
16
|
+
return "tr-TR";
|
|
17
|
+
case "en":
|
|
18
|
+
return "en-US";
|
|
19
|
+
case "de":
|
|
20
|
+
return "de-DE";
|
|
21
|
+
default:
|
|
22
|
+
return "tr-TR";
|
|
23
|
+
}
|
|
24
|
+
}, [s.locale]), a = m(
|
|
25
|
+
() => s.filters.find((e) => {
|
|
26
|
+
var t;
|
|
27
|
+
return e.key === ((t = i.filterValue) == null ? void 0 : t.key);
|
|
28
|
+
}),
|
|
29
|
+
[s.filters, (d = i.filterValue) == null ? void 0 : d.key]
|
|
30
|
+
), b = m(() => {
|
|
31
|
+
var c;
|
|
32
|
+
const e = ((c = a == null ? void 0 : a.options) == null ? void 0 : c.map((r) => ({
|
|
33
|
+
label: r.label,
|
|
34
|
+
value: r.value
|
|
35
|
+
}))) ?? [], t = o.filter((r) => !e.some((v) => v.value === r)).map((r) => ({ label: L(r), value: r }));
|
|
36
|
+
return [...e, ...t];
|
|
37
|
+
}, [a == null ? void 0 : a.options, o]);
|
|
38
|
+
return /* @__PURE__ */ g(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: "relative",
|
|
42
|
+
style: { maxWidth: 330, minWidth: 330 },
|
|
43
|
+
onKeyDownCapture: (e) => {
|
|
44
|
+
e.key !== "Enter" || !n || (e.preventDefault(), e.stopPropagation(), n.trim() !== "" && !o.find((t) => n === t) && p([...o, n]), f(""));
|
|
45
|
+
},
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ u(
|
|
48
|
+
S,
|
|
49
|
+
{
|
|
50
|
+
mode: "tags",
|
|
51
|
+
maxTagCount: "responsive",
|
|
52
|
+
value: o,
|
|
53
|
+
showSearch: !0,
|
|
54
|
+
searchValue: n,
|
|
55
|
+
onSearch: f,
|
|
56
|
+
onChange: (e) => {
|
|
57
|
+
const t = e;
|
|
58
|
+
t.length <= o.length && p(t);
|
|
59
|
+
},
|
|
60
|
+
options: b,
|
|
61
|
+
tagClosable: !0,
|
|
62
|
+
filterOption: (e, t) => t ? String(t.label ?? "").toLocaleLowerCase(h).includes(e.toLocaleLowerCase(h)) : !1,
|
|
63
|
+
style: { width: "100%" },
|
|
64
|
+
placeholder: w.common.actions.enterValue
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
!!n.length && /* @__PURE__ */ g("div", { className: "pointer-events-none absolute right-9 top-1/2 -translate-y-1/2 flex items-center gap-1.5 bg-white", children: [
|
|
68
|
+
/* @__PURE__ */ u(T, { className: "h-4 w-4 text-gray-blue-5" }),
|
|
69
|
+
/* @__PURE__ */ u("span", { className: "text-sm leading-5 text-gray-blue-9", children: w.common.actions.enter })
|
|
70
|
+
] })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
const _ = C(V);
|
|
76
|
+
export {
|
|
77
|
+
_ as FilterStringInput
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(t){return function(){return t}}module.exports=n;
|
package/dist/index335.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index260.cjs");function s(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}module.exports=s;
|
package/dist/index336.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./index352.cjs"),i=require("./index353.cjs");function n(t,r){var e=i(t,r);return u(e)?e:void 0}module.exports=n;
|
package/dist/index337.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index354.cjs"),s=require("./index262.cjs"),t=require("./index311.cjs");function a(){this.size=0,this.__data__={hash:new e,map:new(t||s),string:new e}}module.exports=a;
|
package/dist/index338.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index355.cjs");function s(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}module.exports=s;
|
package/dist/index339.js
ADDED
package/dist/index34.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),l=require("@ikas/ui"),h=require("./index5.cjs"),m=require("./index33.cjs");function p({images:c,visible:x,isSelectionMode:j,onClose:o,onGalleryImagesSelect:t}){const[s,d]=a.useState([]),f=a.useCallback(n=>{d(r=>{const i=r.findIndex(u=>u.id===n.id);return i===-1?[...r,n]:r.filter((u,k)=>k!==i)})},[]),w=a.useCallback(()=>{t==null||t(s),d([])},[s,t]),b=a.useCallback(()=>{d([]),o()},[o]),C=e.jsxs("div",{className:"flex select-none items-center justify-between",children:[e.jsx(l.Badge.Sup,{count:s.length,showZero:!1,children:e.jsx("span",{children:h.coreTranslations.drawerImage.imageGallery})}),e.jsx(l.Button,{variant:"link",onClick:w,children:h.coreTranslations.drawerImage.done})]});return e.jsx(l.Drawer,{width:360,title:C,placement:"right",hideCloseIcon:!0,open:x,onCancel:b,footer:null,destroyOnHidden:!0,children:c==null?void 0:c.map((n,r)=>e.jsx("div",{className:"mb-3 h-[200px]",children:e.jsx(m.DrawerImage,{image:n,isOverlayEnabled:!j,isSelected:s.some(i=>i.id===n.id),onClick:f})},n.id??r))})}exports.DrawerImageGallery=p;
|
package/dist/index34.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as k, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useCallback as l } from "react";
|
|
3
|
+
import { Badge as I, Button as j, Drawer as v } from "@ikas/ui";
|
|
4
|
+
import { coreTranslations as h } from "./index5.js";
|
|
5
|
+
import { DrawerImage as D } from "./index33.js";
|
|
6
|
+
function T({
|
|
7
|
+
images: o,
|
|
8
|
+
visible: f,
|
|
9
|
+
isSelectionMode: m,
|
|
10
|
+
onClose: s,
|
|
11
|
+
onGalleryImagesSelect: t
|
|
12
|
+
}) {
|
|
13
|
+
const [d, c] = b([]), u = l((e) => {
|
|
14
|
+
c((r) => {
|
|
15
|
+
const i = r.findIndex((a) => a.id === e.id);
|
|
16
|
+
return i === -1 ? [...r, e] : r.filter((a, C) => C !== i);
|
|
17
|
+
});
|
|
18
|
+
}, []), p = l(() => {
|
|
19
|
+
t == null || t(d), c([]);
|
|
20
|
+
}, [d, t]), w = l(() => {
|
|
21
|
+
c([]), s();
|
|
22
|
+
}, [s]), x = /* @__PURE__ */ k("div", { className: "flex select-none items-center justify-between", children: [
|
|
23
|
+
/* @__PURE__ */ n(I.Sup, { count: d.length, showZero: !1, children: /* @__PURE__ */ n("span", { children: h.drawerImage.imageGallery }) }),
|
|
24
|
+
/* @__PURE__ */ n(j, { variant: "link", onClick: p, children: h.drawerImage.done })
|
|
25
|
+
] });
|
|
26
|
+
return /* @__PURE__ */ n(
|
|
27
|
+
v,
|
|
28
|
+
{
|
|
29
|
+
width: 360,
|
|
30
|
+
title: x,
|
|
31
|
+
placement: "right",
|
|
32
|
+
hideCloseIcon: !0,
|
|
33
|
+
open: f,
|
|
34
|
+
onCancel: w,
|
|
35
|
+
footer: null,
|
|
36
|
+
destroyOnHidden: !0,
|
|
37
|
+
children: o == null ? void 0 : o.map((e, r) => /* @__PURE__ */ n("div", { className: "mb-3 h-[200px]", children: /* @__PURE__ */ n(
|
|
38
|
+
D,
|
|
39
|
+
{
|
|
40
|
+
image: e,
|
|
41
|
+
isOverlayEnabled: !m,
|
|
42
|
+
isSelected: d.some((i) => i.id === e.id),
|
|
43
|
+
onClick: u
|
|
44
|
+
}
|
|
45
|
+
) }, e.id ?? r))
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
T as DrawerImageGallery
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index355.cjs");function r(t){return e(this,t).get(t)}module.exports=r;
|
package/dist/index340.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index355.cjs");function s(t){return a(this,t).has(t)}module.exports=s;
|
package/dist/index341.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./index355.cjs");function r(e,s){var t=a(this,e),i=t.size;return t.set(e,s),this.size+=t.size==i?0:1,this}module.exports=r;
|
package/dist/index342.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(r,t){return function(n){return r(t(n))}}module.exports=e;
|
package/dist/index343.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index268.cjs"),a=require("./index260.cjs");var i=Object.prototype,o=i.hasOwnProperty;function u(r,s,n){var e=r[s];(!(o.call(r,s)&&a(e,n))||n===void 0&&!(s in r))&&t(r,s,n)}module.exports=u;
|
package/dist/index344.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./index268.js";
|
|
2
|
+
import i from "./index260.js";
|
|
3
|
+
var s = Object.prototype, p = s.hasOwnProperty;
|
|
4
|
+
function l(r, a, o) {
|
|
5
|
+
var n = r[a];
|
|
6
|
+
(!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
l as default
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index247.cjs");var t=r.Uint8Array;module.exports=t;
|
package/dist/index345.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./index197.cjs"),s=require("./index296.cjs"),n=require("./index368.cjs"),e=require("./index369.cjs");function o(r,t){return i(r)?r:s(r,t)?[r]:n(e(r))}module.exports=o;
|
package/dist/index346.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index315.cjs"),o=require("./index356.cjs");var n=Object.prototype,a=n.hasOwnProperty;function i(r){if(!s(r))return o(r);var e=[];for(var t in Object(r))a.call(r,t)&&t!="constructor"&&e.push(t);return e}module.exports=i;
|
package/dist/index347.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import a from "./index315.js";
|
|
2
|
+
import e from "./index356.js";
|
|
3
|
+
var s = Object.prototype, n = s.hasOwnProperty;
|
|
4
|
+
function f(r) {
|
|
5
|
+
if (!a(r))
|
|
6
|
+
return e(r);
|
|
7
|
+
var o = [];
|
|
8
|
+
for (var t in Object(r))
|
|
9
|
+
n.call(r, t) && t != "constructor" && o.push(t);
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as default
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./index357.cjs"),w=require("./index358.cjs"),D=require("./index359.cjs");var G=1,M=2;function p(f,e,A,d,E,n){var P=A&G,L=f.length,S=e.length;if(L!=S&&!(P&&S>L))return!1;var l=n.get(f),q=n.get(e);if(l&&q)return l==e&&q==f;var v=-1,_=!0,R=A&M?new u:void 0;for(n.set(f,e),n.set(e,f);++v<L;){var i=f[v],g=e[v];if(d)var s=P?d(g,i,v,e,f,n):d(i,g,v,f,e,n);if(s!==void 0){if(s)continue;_=!1;break}if(R){if(!w(e,function(C,O){if(!D(R,O)&&(i===C||E(i,C,A,d,n)))return R.push(O)})){_=!1;break}}else if(!(i===g||E(i,g,A,d,n))){_=!1;break}}return n.delete(f),n.delete(e),_}module.exports=p;
|
package/dist/index348.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import D from "./index357.js";
|
|
2
|
+
import G from "./index358.js";
|
|
3
|
+
import M from "./index359.js";
|
|
4
|
+
var x = 1, F = 2;
|
|
5
|
+
function U(n, e, A, d, p, f) {
|
|
6
|
+
var E = A & x, R = n.length, P = e.length;
|
|
7
|
+
if (R != P && !(E && P > R))
|
|
8
|
+
return !1;
|
|
9
|
+
var S = f.get(n), _ = f.get(e);
|
|
10
|
+
if (S && _)
|
|
11
|
+
return S == e && _ == n;
|
|
12
|
+
var v = -1, g = !0, l = A & F ? new D() : void 0;
|
|
13
|
+
for (f.set(n, e), f.set(e, n); ++v < R; ) {
|
|
14
|
+
var i = n[v], L = e[v];
|
|
15
|
+
if (d)
|
|
16
|
+
var C = E ? d(L, i, v, e, n, f) : d(i, L, v, n, e, f);
|
|
17
|
+
if (C !== void 0) {
|
|
18
|
+
if (C)
|
|
19
|
+
continue;
|
|
20
|
+
g = !1;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
if (l) {
|
|
24
|
+
if (!G(e, function(O, w) {
|
|
25
|
+
if (!M(l, w) && (i === O || p(i, O, A, d, f)))
|
|
26
|
+
return l.push(w);
|
|
27
|
+
})) {
|
|
28
|
+
g = !1;
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
} else if (!(i === L || p(i, L, A, d, f))) {
|
|
32
|
+
g = !1;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return f.delete(n), f.delete(e), g;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
U as default
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("./index326.cjs"),i=require("./index345.cjs"),b=require("./index260.cjs"),c=require("./index348.cjs"),_=require("./index360.cjs"),p=require("./index361.cjs");var q=1,L=2,O="[object Boolean]",d="[object Date]",v="[object Error]",E="[object Map]",R="[object Number]",w="[object RegExp]",o="[object Set]",B="[object String]",D="[object Symbol]",P="[object ArrayBuffer]",S="[object DataView]",l=g?g.prototype:void 0,u=l?l.valueOf:void 0;function x(e,r,y,n,T,f,a){switch(y){case S:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case P:return!(e.byteLength!=r.byteLength||!f(new i(e),new i(r)));case O:case d:case R:return b(+e,+r);case v:return e.name==r.name&&e.message==r.message;case w:case B:return e==r+"";case E:var s=_;case o:var m=n&q;if(s||(s=p),e.size!=r.size&&!m)return!1;var t=a.get(e);if(t)return t==r;n|=L,a.set(e,r);var A=c(s(e),s(r),n,T,f,a);return a.delete(e),A;case D:if(u)return u.call(e)==u.call(r)}return!1}module.exports=x;
|
package/dist/index349.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import m from "./index326.js";
|
|
2
|
+
import t from "./index345.js";
|
|
3
|
+
import A from "./index260.js";
|
|
4
|
+
import b from "./index348.js";
|
|
5
|
+
import o from "./index360.js";
|
|
6
|
+
import d from "./index361.js";
|
|
7
|
+
var L = 1, O = 2, v = "[object Boolean]", E = "[object Date]", R = "[object Error]", w = "[object Map]", B = "[object Number]", D = "[object RegExp]", P = "[object Set]", S = "[object String]", _ = "[object Symbol]", c = "[object ArrayBuffer]", x = "[object DataView]", i = m ? m.prototype : void 0, n = i ? i.valueOf : void 0;
|
|
8
|
+
function N(e, a, l, s, y, u, r) {
|
|
9
|
+
switch (l) {
|
|
10
|
+
case x:
|
|
11
|
+
if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
|
|
12
|
+
return !1;
|
|
13
|
+
e = e.buffer, a = a.buffer;
|
|
14
|
+
case c:
|
|
15
|
+
return !(e.byteLength != a.byteLength || !u(new t(e), new t(a)));
|
|
16
|
+
case v:
|
|
17
|
+
case E:
|
|
18
|
+
case B:
|
|
19
|
+
return A(+e, +a);
|
|
20
|
+
case R:
|
|
21
|
+
return e.name == a.name && e.message == a.message;
|
|
22
|
+
case D:
|
|
23
|
+
case S:
|
|
24
|
+
return e == a + "";
|
|
25
|
+
case w:
|
|
26
|
+
var f = o;
|
|
27
|
+
case P:
|
|
28
|
+
var T = s & L;
|
|
29
|
+
if (f || (f = d), e.size != a.size && !T)
|
|
30
|
+
return !1;
|
|
31
|
+
var g = r.get(e);
|
|
32
|
+
if (g)
|
|
33
|
+
return g == a;
|
|
34
|
+
s |= O, r.set(e, a);
|
|
35
|
+
var p = b(f(e), f(a), s, y, u, r);
|
|
36
|
+
return r.delete(e), p;
|
|
37
|
+
case _:
|
|
38
|
+
if (n)
|
|
39
|
+
return n.call(e) == n.call(a);
|
|
40
|
+
}
|
|
41
|
+
return !1;
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
N as default
|
|
45
|
+
};
|
package/dist/index35.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("react"),l=require("@ikas/ui"),z=require("lodash/uniqBy"),H=require("lodash/debounce"),a=require("./index5.cjs"),Z=require("./index33.cjs"),X=require("./index34.cjs"),$=require("./index37.cjs"),o=require("./index36.cjs"),J=require("./index48.cjs"),K=185;function Q({allowVideoUpload:c,title:S,images:s,galleryImages:p,visible:C,disableUpload:_,onClose:F,onChange:u,onImageNameSave:b,imageNameMaxLength:x,productImages:A}){const[q,h]=t.useState(!1),L=t.useRef(null),f=t.useRef([]),N=t.useMemo(()=>(c?o.VALID_FILE_TYPES:o.VALID_IMAGE_TYPES).join(","),[c]),y=!s||s.length===0,m=!!(p!=null&&p.length),j=t.useCallback(async()=>{const e=[];for(let n=0;n<f.current.length;n++){const i=f.current[n],I=o.VALID_VIDEO_TYPES.includes(i.type);let D;I||(D=await $.getImageBase64(i)),e.push({isVideo:I,base64:D||"",src:D||"",id:J(),file:i})}u(s?s.concat(e):e),f.current=[]},[s,u]),k=t.useMemo(()=>H(j,100),[j]),w=t.useCallback(e=>{if(!(c?o.VALID_FILE_TYPES.includes(e.type):o.VALID_IMAGE_TYPES.includes(e.type))){const T=c?o.VALID_FILE_TYPES_LABELS_STRING:o.VALID_IMAGE_TYPES_LABELS_STRING;return l.message.error(a.coreTranslations.drawerImage.fileTypeError(T)),!1}const I=(c?o.VALID_VIDEO_TYPES.includes(e.type):!1)?o.VIDEO_UPLOAD_LIMIT_SIZE:o.IMAGE_UPLOAD_LIMIT_SIZE;if(e.size/1024/1024>=I){const T=c?a.coreTranslations.drawerImage.mediaUploadLimitSize(I):a.coreTranslations.drawerImage.imageUploadLimitSize(I);return l.message.error(T),!1}return!0},[c]),P=t.useCallback(e=>{Array.from(e.target.files||[]).forEach(i=>{w(i)&&f.current.push(i)}),k(),e.target.value=""},[w,k]),d=t.useCallback(()=>{var e;(e=L.current)==null||e.click()},[]),g=t.useCallback(e=>{const n=s.filter(i=>i.id!==e.id);u(n)},[s,u]),M=t.useCallback(e=>{if(!e.destination)return;const n=Array.from(s||[]),[i]=n.splice(e.source.index,1);n.splice(e.destination.index,0,i),u(n)},[s,u]),G=t.useCallback((e,n)=>({...n}),[]),v=t.useCallback(()=>{h(!0)},[]),O=t.useCallback(()=>{h(!1)},[]),R=t.useCallback(e=>{const n=z((s||[]).concat(e),"id");u(n),h(!1)},[s,u]),E=t.useMemo(()=>({items:[{key:"upload",label:c?a.coreTranslations.drawerImage.selectNewMedia:a.coreTranslations.drawerImage.selectNewImage,onClick:d},{key:"gallery",label:a.coreTranslations.drawerImage.selectGallery,onClick:v}]}),[c,d,v]),B=t.useMemo(()=>{const e=m?r.jsx(l.Dropdown,{menu:E,placement:"bottomRight",children:r.jsx(l.Button,{variant:"link",children:a.coreTranslations.drawerImage.new})}):r.jsx(l.Button,{variant:"link",onClick:d,children:a.coreTranslations.drawerImage.new});return r.jsxs("div",{className:"flex select-none items-center justify-between",children:[r.jsx("span",{children:S||"Images"}),!y&&!_&&e]})},[S,y,_,m,E,d]),V=t.useMemo(()=>{const e=c?a.coreTranslations.drawerImage.clickFileMedia:a.coreTranslations.drawerImage.clickFileImage;return m?r.jsxs("div",{children:[r.jsx("div",{onClick:d,className:"cursor-pointer",children:r.jsx(l.EmptyState,{description:e})}),r.jsx(l.Dropdown,{menu:E,placement:"bottom",children:r.jsx(l.Button,{variant:"primary",className:"mt-3",children:a.coreTranslations.drawerImage.selectGallery})})]}):r.jsx("div",{onClick:d,className:"cursor-pointer",children:r.jsx(l.EmptyState,{description:e})})},[c,m,E,d]),Y=t.useMemo(()=>s!=null&&s.length?r.jsx(l.DragAndDrop,{onDragEnd:M,draggableData:s,droppableId:"droppable",getItemStyle:G,keyPath:"id",children:e=>r.jsx("div",{className:"mb-3 h-[200px]",children:r.jsx(Z.DrawerImage,{image:e,images:s,isOverlayEnabled:!0,onDelete:g,onNameChange:b,maxLength:x||K,productImages:A})})}):null,[s,M,G,g,b,x,A]);return r.jsxs(l.Drawer,{width:360,title:B,placement:"right",hideCloseIcon:!0,open:C,onCancel:F,footer:null,destroyOnHidden:!0,children:[r.jsx("input",{ref:L,type:"file",multiple:!0,accept:N,onChange:P,className:"hidden"}),!y&&Y,m&&r.jsx(X.DrawerImageGallery,{images:p,visible:q,isSelectionMode:!0,onClose:O,onGalleryImagesSelect:R}),!_&&y&&r.jsx("div",{className:"mt-3",children:V})]})}exports.DrawerImageSelect=Q;
|
package/dist/index35.js
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { jsxs as w, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as $, useRef as P, useMemo as m, useCallback as l } from "react";
|
|
3
|
+
import { message as x, EmptyState as B, Dropdown as R, Button as A, DragAndDrop as U, Drawer as ee } from "@ikas/ui";
|
|
4
|
+
import re from "lodash/uniqBy";
|
|
5
|
+
import te from "lodash/debounce";
|
|
6
|
+
import { coreTranslations as s } from "./index5.js";
|
|
7
|
+
import { DrawerImage as ne } from "./index33.js";
|
|
8
|
+
import { DrawerImageGallery as ie } from "./index34.js";
|
|
9
|
+
import { getImageBase64 as ce } from "./index37.js";
|
|
10
|
+
import { VALID_FILE_TYPES as C, VALID_IMAGE_TYPES as Y, VALID_VIDEO_TYPES as j, VALID_FILE_TYPES_LABELS_STRING as se, VALID_IMAGE_TYPES_LABELS_STRING as le, VIDEO_UPLOAD_LIMIT_SIZE as oe, IMAGE_UPLOAD_LIMIT_SIZE as ae } from "./index36.js";
|
|
11
|
+
import de from "./index48.js";
|
|
12
|
+
const me = 185;
|
|
13
|
+
function Le({
|
|
14
|
+
allowVideoUpload: i,
|
|
15
|
+
title: L,
|
|
16
|
+
images: r,
|
|
17
|
+
galleryImages: I,
|
|
18
|
+
visible: z,
|
|
19
|
+
disableUpload: D,
|
|
20
|
+
onClose: V,
|
|
21
|
+
onChange: o,
|
|
22
|
+
onImageNameSave: S,
|
|
23
|
+
imageNameMaxLength: g,
|
|
24
|
+
productImages: G
|
|
25
|
+
}) {
|
|
26
|
+
const [H, E] = $(!1), b = P(null), p = P([]), Z = m(
|
|
27
|
+
() => (i ? C : Y).join(","),
|
|
28
|
+
[i]
|
|
29
|
+
), f = !r || r.length === 0, u = !!(I != null && I.length), v = l(async () => {
|
|
30
|
+
const e = [];
|
|
31
|
+
for (let n = 0; n < p.current.length; n++) {
|
|
32
|
+
const c = p.current[n], d = j.includes(c.type);
|
|
33
|
+
let y;
|
|
34
|
+
d || (y = await ce(c)), e.push({
|
|
35
|
+
isVideo: d,
|
|
36
|
+
base64: y || "",
|
|
37
|
+
src: y || "",
|
|
38
|
+
id: de(),
|
|
39
|
+
file: c
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
o(r ? r.concat(e) : e), p.current = [];
|
|
43
|
+
}, [r, o]), T = m(
|
|
44
|
+
() => te(v, 100),
|
|
45
|
+
[v]
|
|
46
|
+
), k = l(
|
|
47
|
+
(e) => {
|
|
48
|
+
if (!(i ? C.includes(e.type) : Y.includes(e.type))) {
|
|
49
|
+
const _ = i ? se : le;
|
|
50
|
+
return x.error(s.drawerImage.fileTypeError(_)), !1;
|
|
51
|
+
}
|
|
52
|
+
const d = (i ? j.includes(e.type) : !1) ? oe : ae;
|
|
53
|
+
if (e.size / 1024 / 1024 >= d) {
|
|
54
|
+
const _ = i ? s.drawerImage.mediaUploadLimitSize(d) : s.drawerImage.imageUploadLimitSize(d);
|
|
55
|
+
return x.error(_), !1;
|
|
56
|
+
}
|
|
57
|
+
return !0;
|
|
58
|
+
},
|
|
59
|
+
[i]
|
|
60
|
+
), q = l(
|
|
61
|
+
(e) => {
|
|
62
|
+
Array.from(e.target.files || []).forEach((c) => {
|
|
63
|
+
k(c) && p.current.push(c);
|
|
64
|
+
}), T(), e.target.value = "";
|
|
65
|
+
},
|
|
66
|
+
[k, T]
|
|
67
|
+
), a = l(() => {
|
|
68
|
+
var e;
|
|
69
|
+
(e = b.current) == null || e.click();
|
|
70
|
+
}, []), F = l(
|
|
71
|
+
(e) => {
|
|
72
|
+
const n = r.filter((c) => c.id !== e.id);
|
|
73
|
+
o(n);
|
|
74
|
+
},
|
|
75
|
+
[r, o]
|
|
76
|
+
), M = l(
|
|
77
|
+
(e) => {
|
|
78
|
+
if (!e.destination) return;
|
|
79
|
+
const n = Array.from(r || []), [c] = n.splice(e.source.index, 1);
|
|
80
|
+
n.splice(e.destination.index, 0, c), o(n);
|
|
81
|
+
},
|
|
82
|
+
[r, o]
|
|
83
|
+
), N = l(
|
|
84
|
+
(e, n) => ({
|
|
85
|
+
...n
|
|
86
|
+
}),
|
|
87
|
+
[]
|
|
88
|
+
), O = l(() => {
|
|
89
|
+
E(!0);
|
|
90
|
+
}, []), X = l(() => {
|
|
91
|
+
E(!1);
|
|
92
|
+
}, []), J = l(
|
|
93
|
+
(e) => {
|
|
94
|
+
const n = re(
|
|
95
|
+
(r || []).concat(e),
|
|
96
|
+
"id"
|
|
97
|
+
);
|
|
98
|
+
o(n), E(!1);
|
|
99
|
+
},
|
|
100
|
+
[r, o]
|
|
101
|
+
), h = m(
|
|
102
|
+
() => ({
|
|
103
|
+
items: [
|
|
104
|
+
{
|
|
105
|
+
key: "upload",
|
|
106
|
+
label: i ? s.drawerImage.selectNewMedia : s.drawerImage.selectNewImage,
|
|
107
|
+
onClick: a
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "gallery",
|
|
111
|
+
label: s.drawerImage.selectGallery,
|
|
112
|
+
onClick: O
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}),
|
|
116
|
+
[i, a, O]
|
|
117
|
+
), K = m(() => {
|
|
118
|
+
const e = u ? /* @__PURE__ */ t(R, { menu: h, placement: "bottomRight", children: /* @__PURE__ */ t(A, { variant: "link", children: s.drawerImage.new }) }) : /* @__PURE__ */ t(A, { variant: "link", onClick: a, children: s.drawerImage.new });
|
|
119
|
+
return /* @__PURE__ */ w("div", { className: "flex select-none items-center justify-between", children: [
|
|
120
|
+
/* @__PURE__ */ t("span", { children: L || "Images" }),
|
|
121
|
+
!f && !D && e
|
|
122
|
+
] });
|
|
123
|
+
}, [
|
|
124
|
+
L,
|
|
125
|
+
f,
|
|
126
|
+
D,
|
|
127
|
+
u,
|
|
128
|
+
h,
|
|
129
|
+
a
|
|
130
|
+
]), Q = m(() => {
|
|
131
|
+
const e = i ? s.drawerImage.clickFileMedia : s.drawerImage.clickFileImage;
|
|
132
|
+
return u ? /* @__PURE__ */ w("div", { children: [
|
|
133
|
+
/* @__PURE__ */ t("div", { onClick: a, className: "cursor-pointer", children: /* @__PURE__ */ t(B, { description: e }) }),
|
|
134
|
+
/* @__PURE__ */ t(R, { menu: h, placement: "bottom", children: /* @__PURE__ */ t(A, { variant: "primary", className: "mt-3", children: s.drawerImage.selectGallery }) })
|
|
135
|
+
] }) : /* @__PURE__ */ t("div", { onClick: a, className: "cursor-pointer", children: /* @__PURE__ */ t(B, { description: e }) });
|
|
136
|
+
}, [
|
|
137
|
+
i,
|
|
138
|
+
u,
|
|
139
|
+
h,
|
|
140
|
+
a
|
|
141
|
+
]), W = m(() => r != null && r.length ? /* @__PURE__ */ t(
|
|
142
|
+
U,
|
|
143
|
+
{
|
|
144
|
+
onDragEnd: M,
|
|
145
|
+
draggableData: r,
|
|
146
|
+
droppableId: "droppable",
|
|
147
|
+
getItemStyle: N,
|
|
148
|
+
keyPath: "id",
|
|
149
|
+
children: (e) => /* @__PURE__ */ t("div", { className: "mb-3 h-[200px]", children: /* @__PURE__ */ t(
|
|
150
|
+
ne,
|
|
151
|
+
{
|
|
152
|
+
image: e,
|
|
153
|
+
images: r,
|
|
154
|
+
isOverlayEnabled: !0,
|
|
155
|
+
onDelete: F,
|
|
156
|
+
onNameChange: S,
|
|
157
|
+
maxLength: g || me,
|
|
158
|
+
productImages: G
|
|
159
|
+
}
|
|
160
|
+
) })
|
|
161
|
+
}
|
|
162
|
+
) : null, [
|
|
163
|
+
r,
|
|
164
|
+
M,
|
|
165
|
+
N,
|
|
166
|
+
F,
|
|
167
|
+
S,
|
|
168
|
+
g,
|
|
169
|
+
G
|
|
170
|
+
]);
|
|
171
|
+
return /* @__PURE__ */ w(
|
|
172
|
+
ee,
|
|
173
|
+
{
|
|
174
|
+
width: 360,
|
|
175
|
+
title: K,
|
|
176
|
+
placement: "right",
|
|
177
|
+
hideCloseIcon: !0,
|
|
178
|
+
open: z,
|
|
179
|
+
onCancel: V,
|
|
180
|
+
footer: null,
|
|
181
|
+
destroyOnHidden: !0,
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ t(
|
|
184
|
+
"input",
|
|
185
|
+
{
|
|
186
|
+
ref: b,
|
|
187
|
+
type: "file",
|
|
188
|
+
multiple: !0,
|
|
189
|
+
accept: Z,
|
|
190
|
+
onChange: q,
|
|
191
|
+
className: "hidden"
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
!f && W,
|
|
195
|
+
u && /* @__PURE__ */ t(
|
|
196
|
+
ie,
|
|
197
|
+
{
|
|
198
|
+
images: I,
|
|
199
|
+
visible: H,
|
|
200
|
+
isSelectionMode: !0,
|
|
201
|
+
onClose: X,
|
|
202
|
+
onGalleryImagesSelect: J
|
|
203
|
+
}
|
|
204
|
+
),
|
|
205
|
+
!D && f && /* @__PURE__ */ t("div", { className: "mt-3", children: Q })
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
export {
|
|
211
|
+
Le as DrawerImageSelect
|
|
212
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const _=require("./index362.cjs");var S=1,c=Object.prototype,E=c.hasOwnProperty;function F(r,n,A,s,q,i){var v=A&S,g=_(r),t=g.length,x=_(n),R=x.length;if(t!=R&&!v)return!1;for(var a=t;a--;){var f=g[a];if(!(v?f in n:E.call(n,f)))return!1}var O=i.get(r),w=i.get(n);if(O&&w)return O==n&&w==r;var l=!0;i.set(r,n),i.set(n,r);for(var d=v;++a<t;){f=g[a];var e=r[f],p=n[f];if(s)var L=v?s(p,e,f,n,r,i):s(e,p,f,r,n,i);if(!(L===void 0?e===p||q(e,p,A,s,i):L)){l=!1;break}d||(d=f=="constructor")}if(l&&!d){var u=r.constructor,P=n.constructor;u!=P&&"constructor"in r&&"constructor"in n&&!(typeof u=="function"&&u instanceof u&&typeof P=="function"&&P instanceof P)&&(l=!1)}return i.delete(r),i.delete(n),l}module.exports=F;
|