@scbt-ecom/ui 0.126.0 → 0.127.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/lib/exports/ui.js +1 -1
- package/dist/lib/shared/ui/confirmable/Confirmable.js +2 -0
- package/dist/lib/shared/ui/confirmable/Confirmable.js.map +1 -0
- package/dist/lib/shared/ui/confirmable/index.js +2 -0
- package/dist/lib/shared/ui/confirmable/index.js.map +1 -0
- package/dist/lib/shared/ui/index.js +1 -1
- package/dist/lib/shared/utils/variableHolder/variableContextHolder.js +1 -1
- package/dist/lib/shared/utils/variableHolder/variableContextHolder.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types/lib/shared/ui/confirmable/Confirmable.d.ts +7 -0
- package/dist/types/lib/shared/ui/confirmable/index.d.ts +1 -0
- package/dist/types/lib/shared/ui/index.d.ts +1 -0
- package/dist/types/lib/shared/utils/variableHolder/variableContextHolder.d.ts +6 -0
- package/package.json +1 -1
package/dist/lib/exports/ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ResponsiveContainer as t}from"../shared/ui/responsiveContainer/ResponsiveContainer.js";import{Button as a}from"../shared/ui/button/Button.js";import{buttonPrimitiveIntent as
|
|
1
|
+
import{ResponsiveContainer as t}from"../shared/ui/responsiveContainer/ResponsiveContainer.js";import{Button as a}from"../shared/ui/button/Button.js";import{buttonPrimitiveIntent as p,buttonPrimitiveSize as f,buttonPrimitiveTextFormat as x,buttonPrimitiveType as n}from"../shared/ui/button/model/helpers.js";import{ButtonIcon as l}from"../shared/ui/buttonIcon/ButtonIcon.js";import{PhoneView as s}from"../shared/ui/phoneView/PhoneView.js";import{Badge as u}from"../shared/ui/badge/Badge.js";import{Loader as T}from"../shared/ui/loader/Loader.js";import{Skeleton as I}from"../shared/ui/skeleton/Skeleton.js";import{FloatButton as P}from"../shared/ui/floatButton/FloatButton.js";import{Calendar as D}from"../shared/ui/calendar/Calendar.js";import{DATE_VISIBLE_PATTERN as y,defaultClassNames as v,formatDateToLocaleString as k,formatDateToMonthString as R,formatDateToYearString as h}from"../shared/ui/calendar/model/utils.js";import{Accordion as A}from"../shared/ui/accordion/Accordion.js";import{Hint as E}from"../shared/ui/hint/Hint.js";import{Popover as F}from"../shared/ui/popover/Popover.js";import{ProgressBar as M}from"../shared/ui/progressBar/ProgressBar.js";import{TabsSwitcher as O}from"../shared/ui/tabSwitcher/TabsSwitcher.js";import{Modal as z}from"../shared/ui/modal/Modal.js";import{Notification as _}from"../shared/ui/notification/Notification.js";import{Table as Y,TableBody as j,TableCaption as q,TableCell as J,TableFooter as Q,TableHead as W,TableHeader as X,TableRow as Z}from"../shared/ui/table/ui/primitives/Primitives.js";import{DataTableColumnHeader as oo}from"../shared/ui/table/ui/dataTableColumnHeader/DataTableColumnHeader.js";import{EditableCell as to}from"../shared/ui/table/ui/editableCell/EditableCell.js";import{DataTable as ao}from"../shared/ui/table/Table.js";import{TableUtils as po}from"../shared/ui/table/model/TableUtils.js";import{TablePagination as xo}from"../shared/ui/table/TablePagination.js";import{Pagination as io}from"../shared/ui/pagination/Pagination.js";import{usePagination as so}from"../shared/ui/pagination/hooks/usePagination.js";import{CarouselBase as uo}from"../shared/ui/carousel/CarouselBase.js";import{ArrowNavigationButton as To}from"../shared/ui/carousel/ui/ArrowNavigationButton.js";import{CarouselSlide as Io}from"../shared/ui/carousel/ui/CarouselSlide.js";import{DotsNavigations as Po}from"../shared/ui/carousel/ui/DotsNavigations.js";import{SlideProductCard as Do}from"../shared/ui/carousel/ui/slideVariants/SlideProductCard.js";import{SlideOnlyImage as yo}from"../shared/ui/carousel/ui/slideVariants/SlideOnlyImage.js";import{SlideFullScreen as ko}from"../shared/ui/carousel/ui/slideVariants/SlideFullScreen.js";import{CarouselContent as ho}from"../shared/ui/carousel/ui/CarouselContent.js";import{Dialog as Ao}from"../shared/ui/dialog/Dialog.js";import{NotificationProvider as Eo}from"../shared/ui/providers/NotificationProvider.js";import{Heading as Fo}from"../shared/ui/heading/Heading.js";import{Icon as Mo}from"../shared/ui/icon/Icon.js";import{allowedIcons as Oo}from"../shared/ui/icon/allowedIcons.js";import{brandLogos as zo}from"../shared/ui/brandLogos/BrandLogos.js";import{CustomLink as _o}from"../shared/ui/customLink/CustomLink.js";import{linkPrimitiveIconIntent as Yo,linkPrimitiveIntent as jo,linkPrimitiveSize as qo}from"../shared/ui/customLink/model/helpers.js";import{KeyboardShortcuts as Qo}from"../shared/ui/keyboardShortcuts/KeyboardShortcuts.js";import{Slot as Xo}from"../shared/ui/slot/Slot.js";import{AutocompleteBase as $o}from"../shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.js";import{CheckboxBase as rr}from"../shared/ui/formElements/uncontrolled/checkbox/Checkbox.js";import{Combobox as er}from"../shared/ui/formElements/uncontrolled/combobox/combobox.js";import{DayPickerBase as mr}from"../shared/ui/formElements/uncontrolled/dayPicker/DayPicker.js";import{InputBase as fr}from"../shared/ui/formElements/uncontrolled/input/Input.js";import{InputOtpBase as nr}from"../shared/ui/formElements/uncontrolled/inputOtp/InputOtpBase.js";import{MaskInput as lr}from"../shared/ui/formElements/uncontrolled/maskInput/MaskInput.js";import{RadioGroupBase as sr}from"../shared/ui/formElements/uncontrolled/radio/RadioGroup.js";import{RadioItem as ur}from"../shared/ui/formElements/uncontrolled/radio/ui/RadioItem.js";import{RadioItemCard as Tr}from"../shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.js";import{RadioItemTab as Ir}from"../shared/ui/formElements/uncontrolled/radio/ui/RadioItemTab.js";import{SliderBase as Pr}from"../shared/ui/formElements/uncontrolled/slider/SliderBase.js";import{SwitchBase as Dr}from"../shared/ui/formElements/uncontrolled/switch/Switch.js";import{TextareaBase as yr}from"../shared/ui/formElements/uncontrolled/textarea/Textarea.js";import{UploaderBase as kr}from"../shared/ui/formElements/uncontrolled/uploader/UploaderBase.js";import{bytesToMegabytes as hr,megabytesToBytes as wr}from"../shared/ui/formElements/uncontrolled/uploader/model/helpers.js";import{InputCurrencyBase as Lr}from"../shared/ui/formElements/uncontrolled/inputCurrency/InputCurrency.js";import{Uncontrolled as Nr}from"../shared/ui/formElements/uncontrolled/index.js";import{AutocompleteControl as Hr}from"../shared/ui/formElements/controlled/autocomplete/Autocomplete.js";import{CheckboxControl as Gr}from"../shared/ui/formElements/controlled/checkbox/CheckboxControl.js";import{DadataOrganization as Ur}from"../shared/ui/formElements/controlled/dadata/party/DadataOrganization.js";import{DadataAddress as Vr}from"../shared/ui/formElements/controlled/dadata/address/DadataAddress.js";import{DadataAuto as Kr}from"../shared/ui/formElements/controlled/dadata/auto/DadataAuto.js";import{DadataCountry as jr}from"../shared/ui/formElements/controlled/dadata/country/DadataCountry.js";import{DadataFio as Jr}from"../shared/ui/formElements/controlled/dadata/fio/DadataFio.js";import{DayPickerControl as Wr}from"../shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.js";import{EditorControl as Zr}from"../shared/ui/formElements/controlled/editor/EditorControl.js";import{InputControl as ot}from"../shared/ui/formElements/controlled/input/InputControl.js";import{MaskInputControl as tt}from"../shared/ui/formElements/controlled/input/MaskInputControl.js";import{InputCurrencyControl as at}from"../shared/ui/formElements/controlled/inputCurrency/InputCurrencyControl.js";import{InputOtpControl as pt}from"../shared/ui/formElements/controlled/inputOtp/InputOtpControl.js";import{RadioGroupControl as xt}from"../shared/ui/formElements/controlled/radio/RadioGroupControl.js";import{RadioGroupTabControl as it}from"../shared/ui/formElements/controlled/radio/RadioGroupTabControl.js";import{RadioGroupCardControl as dt}from"../shared/ui/formElements/controlled/radio/RadioGroupCardControl.js";import{SliderControl as Ct}from"../shared/ui/formElements/controlled/slider/SliderControl.js";import{SwitchControl as bt}from"../shared/ui/formElements/controlled/switch/SwitchControl.js";import{TextareaControl as ct}from"../shared/ui/formElements/controlled/textarea/TextareaControl.js";import{UploaderControl as Bt}from"../shared/ui/formElements/controlled/uploader/UploaderControl.js";import{ComboboxControl as St}from"../shared/ui/formElements/controlled/combobox/ComboboxControl.js";import{Controlled as gt}from"../shared/ui/formElements/controlled/index.js";import{Chips as vt}from"../shared/ui/chips/Chips.js";import{DropdownItem as Rt}from"../shared/ui/dropdownList/ui/dropdownItem/DropdownItem.js";import{EmptyList as wt}from"../shared/ui/dropdownList/ui/Empty.js";import{DropdownList as Lt}from"../shared/ui/dropdownList/DropdownList.js";import{Portal as Nt}from"../shared/ui/portal/Portal.js";import{Divider as Ht}from"../shared/ui/divider/Divider.js";import{Confirmable as Gt}from"../shared/ui/confirmable/Confirmable.js";export{A as Accordion,To as ArrowNavigationButton,$o as AutocompleteBase,Hr as AutocompleteControl,u as Badge,a as Button,l as ButtonIcon,D as Calendar,uo as CarouselBase,ho as CarouselContent,Io as CarouselSlide,rr as CheckboxBase,Gr as CheckboxControl,vt as Chips,er as Combobox,St as ComboboxControl,Gt as Confirmable,gt as Controlled,_o as CustomLink,y as DATE_VISIBLE_PATTERN,Vr as DadataAddress,Kr as DadataAuto,jr as DadataCountry,Jr as DadataFio,Ur as DadataOrganization,ao as DataTable,oo as DataTableColumnHeader,mr as DayPickerBase,Wr as DayPickerControl,Ao as Dialog,Ht as Divider,Po as DotsNavigations,Rt as DropdownItem,Lt as DropdownList,to as EditableCell,Zr as EditorControl,wt as EmptyList,P as FloatButton,Fo as Heading,E as Hint,Mo as Icon,fr as InputBase,ot as InputControl,Lr as InputCurrencyBase,at as InputCurrencyControl,nr as InputOtpBase,pt as InputOtpControl,Qo as KeyboardShortcuts,T as Loader,lr as MaskInput,tt as MaskInputControl,z as Modal,_ as Notification,Eo as NotificationProvider,io as Pagination,s as PhoneView,F as Popover,Nt as Portal,M as ProgressBar,sr as RadioGroupBase,dt as RadioGroupCardControl,xt as RadioGroupControl,it as RadioGroupTabControl,ur as RadioItem,Tr as RadioItemCard,Ir as RadioItemTab,t as ResponsiveContainer,I as Skeleton,ko as SlideFullScreen,yo as SlideOnlyImage,Do as SlideProductCard,Pr as SliderBase,Ct as SliderControl,Xo as Slot,Dr as SwitchBase,bt as SwitchControl,Y as Table,j as TableBody,q as TableCaption,J as TableCell,Q as TableFooter,W as TableHead,X as TableHeader,xo as TablePagination,Z as TableRow,po as TableUtils,O as TabsSwitcher,yr as TextareaBase,ct as TextareaControl,Nr as Uncontrolled,kr as UploaderBase,Bt as UploaderControl,Oo as allowedIcons,zo as brandLogos,p as buttonPrimitiveIntent,f as buttonPrimitiveSize,x as buttonPrimitiveTextFormat,n as buttonPrimitiveType,hr as bytesToMegabytes,v as defaultClassNames,k as formatDateToLocaleString,R as formatDateToMonthString,h as formatDateToYearString,Yo as linkPrimitiveIconIntent,jo as linkPrimitiveIntent,qo as linkPrimitiveSize,wr as megabytesToBytes,so as usePagination};
|
|
2
2
|
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Confirmable.js","sources":["../../../../../lib/shared/ui/confirmable/Confirmable.tsx"],"sourcesContent":["import { Popover, type PopoverProps } from '../popover'\n\nexport interface ConfirmableProps extends Omit<PopoverProps, 'triggerElement'> {\n children: React.ReactElement\n approve?: React.ReactElement\n reject?: React.ReactElement\n}\n\nexport const Confirmable = ({ children, approve, reject, ...props }: ConfirmableProps) => {\n return (\n <Popover {...props} triggerElement={children}>\n {approve && approve}\n {reject && reject}\n </Popover>\n )\n}\n"],"names":["Confirmable","children","approve","reject","props","jsxs","Popover"],"mappings":"yFAQO,MAAMA,EAAc,CAAC,CAAE,SAAAC,EAAU,QAAAC,EAAS,OAAAC,EAAQ,GAAGC,KAExDC,EAACC,EAAA,CAAS,GAAGF,EAAO,eAAgBH,EACjC,SAAA,CAAAC,GAAWA,EACXC,GAAUA,CAAA,EACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ResponsiveContainer as t}from"./responsiveContainer/ResponsiveContainer.js";import{Button as a}from"./button/Button.js";import{buttonPrimitiveIntent as
|
|
1
|
+
import{ResponsiveContainer as t}from"./responsiveContainer/ResponsiveContainer.js";import{Button as a}from"./button/Button.js";import{buttonPrimitiveIntent as p,buttonPrimitiveSize as f,buttonPrimitiveTextFormat as x,buttonPrimitiveType as n}from"./button/model/helpers.js";import{ButtonIcon as l}from"./buttonIcon/ButtonIcon.js";import{PhoneView as s}from"./phoneView/PhoneView.js";import{Badge as u}from"./badge/Badge.js";import{Loader as T}from"./loader/Loader.js";import{Skeleton as I}from"./skeleton/Skeleton.js";import{FloatButton as P}from"./floatButton/FloatButton.js";import{Calendar as D}from"./calendar/Calendar.js";import{DATE_VISIBLE_PATTERN as y,defaultClassNames as v,formatDateToLocaleString as k,formatDateToMonthString as R,formatDateToYearString as h}from"./calendar/model/utils.js";import{Accordion as A}from"./accordion/Accordion.js";import{Hint as E}from"./hint/Hint.js";import{Popover as F}from"./popover/Popover.js";import{ProgressBar as M}from"./progressBar/ProgressBar.js";import{TabsSwitcher as O}from"./tabSwitcher/TabsSwitcher.js";import{Modal as z}from"./modal/Modal.js";import{Notification as _}from"./notification/Notification.js";import{Table as Y,TableBody as j,TableCaption as q,TableCell as J,TableFooter as Q,TableHead as W,TableHeader as X,TableRow as Z}from"./table/ui/primitives/Primitives.js";import{DataTableColumnHeader as oo}from"./table/ui/dataTableColumnHeader/DataTableColumnHeader.js";import{EditableCell as to}from"./table/ui/editableCell/EditableCell.js";import{DataTable as ao}from"./table/Table.js";import{TableUtils as po}from"./table/model/TableUtils.js";import{TablePagination as xo}from"./table/TablePagination.js";import{Pagination as io}from"./pagination/Pagination.js";import{usePagination as so}from"./pagination/hooks/usePagination.js";import{CarouselBase as uo}from"./carousel/CarouselBase.js";import{ArrowNavigationButton as To}from"./carousel/ui/ArrowNavigationButton.js";import{CarouselSlide as Io}from"./carousel/ui/CarouselSlide.js";import{DotsNavigations as Po}from"./carousel/ui/DotsNavigations.js";import{SlideProductCard as Do}from"./carousel/ui/slideVariants/SlideProductCard.js";import{SlideOnlyImage as yo}from"./carousel/ui/slideVariants/SlideOnlyImage.js";import{SlideFullScreen as ko}from"./carousel/ui/slideVariants/SlideFullScreen.js";import{CarouselContent as ho}from"./carousel/ui/CarouselContent.js";import{Dialog as Ao}from"./dialog/Dialog.js";import{NotificationProvider as Eo}from"./providers/NotificationProvider.js";import{Heading as Fo}from"./heading/Heading.js";import{Icon as Mo}from"./icon/Icon.js";import{allowedIcons as Oo}from"./icon/allowedIcons.js";import{brandLogos as zo}from"./brandLogos/BrandLogos.js";import{CustomLink as _o}from"./customLink/CustomLink.js";import{linkPrimitiveIconIntent as Yo,linkPrimitiveIntent as jo,linkPrimitiveSize as qo}from"./customLink/model/helpers.js";import{KeyboardShortcuts as Qo}from"./keyboardShortcuts/KeyboardShortcuts.js";import{Slot as Xo}from"./slot/Slot.js";import{AutocompleteBase as $o}from"./formElements/uncontrolled/autocomplete/Autocomplete.js";import{CheckboxBase as rr}from"./formElements/uncontrolled/checkbox/Checkbox.js";import{Combobox as er}from"./formElements/uncontrolled/combobox/combobox.js";import{DayPickerBase as mr}from"./formElements/uncontrolled/dayPicker/DayPicker.js";import{InputBase as fr}from"./formElements/uncontrolled/input/Input.js";import{InputOtpBase as nr}from"./formElements/uncontrolled/inputOtp/InputOtpBase.js";import{MaskInput as lr}from"./formElements/uncontrolled/maskInput/MaskInput.js";import{RadioGroupBase as sr}from"./formElements/uncontrolled/radio/RadioGroup.js";import{RadioItem as ur}from"./formElements/uncontrolled/radio/ui/RadioItem.js";import{RadioItemCard as Tr}from"./formElements/uncontrolled/radio/ui/RadioItemCard.js";import{RadioItemTab as Ir}from"./formElements/uncontrolled/radio/ui/RadioItemTab.js";import{SliderBase as Pr}from"./formElements/uncontrolled/slider/SliderBase.js";import{SwitchBase as Dr}from"./formElements/uncontrolled/switch/Switch.js";import{TextareaBase as yr}from"./formElements/uncontrolled/textarea/Textarea.js";import{UploaderBase as kr}from"./formElements/uncontrolled/uploader/UploaderBase.js";import{bytesToMegabytes as hr,megabytesToBytes as wr}from"./formElements/uncontrolled/uploader/model/helpers.js";import{InputCurrencyBase as Lr}from"./formElements/uncontrolled/inputCurrency/InputCurrency.js";import{Uncontrolled as Nr}from"./formElements/uncontrolled/index.js";import{AutocompleteControl as Hr}from"./formElements/controlled/autocomplete/Autocomplete.js";import{CheckboxControl as Gr}from"./formElements/controlled/checkbox/CheckboxControl.js";import{DadataOrganization as Ur}from"./formElements/controlled/dadata/party/DadataOrganization.js";import{DadataAddress as Vr}from"./formElements/controlled/dadata/address/DadataAddress.js";import{DadataAuto as Kr}from"./formElements/controlled/dadata/auto/DadataAuto.js";import{DadataCountry as jr}from"./formElements/controlled/dadata/country/DadataCountry.js";import{DadataFio as Jr}from"./formElements/controlled/dadata/fio/DadataFio.js";import{DayPickerControl as Wr}from"./formElements/controlled/dayPickerControl/dayPickerControl.js";import{EditorControl as Zr}from"./formElements/controlled/editor/EditorControl.js";import{InputControl as ot}from"./formElements/controlled/input/InputControl.js";import{MaskInputControl as tt}from"./formElements/controlled/input/MaskInputControl.js";import{InputCurrencyControl as at}from"./formElements/controlled/inputCurrency/InputCurrencyControl.js";import{InputOtpControl as pt}from"./formElements/controlled/inputOtp/InputOtpControl.js";import{RadioGroupControl as xt}from"./formElements/controlled/radio/RadioGroupControl.js";import{RadioGroupTabControl as it}from"./formElements/controlled/radio/RadioGroupTabControl.js";import{RadioGroupCardControl as dt}from"./formElements/controlled/radio/RadioGroupCardControl.js";import{SliderControl as Ct}from"./formElements/controlled/slider/SliderControl.js";import{SwitchControl as bt}from"./formElements/controlled/switch/SwitchControl.js";import{TextareaControl as ct}from"./formElements/controlled/textarea/TextareaControl.js";import{UploaderControl as Bt}from"./formElements/controlled/uploader/UploaderControl.js";import{ComboboxControl as St}from"./formElements/controlled/combobox/ComboboxControl.js";import{Controlled as gt}from"./formElements/controlled/index.js";import{Chips as vt}from"./chips/Chips.js";import{DropdownItem as Rt}from"./dropdownList/ui/dropdownItem/DropdownItem.js";import{EmptyList as wt}from"./dropdownList/ui/Empty.js";import{DropdownList as Lt}from"./dropdownList/DropdownList.js";import{Portal as Nt}from"./portal/Portal.js";import{Divider as Ht}from"./divider/Divider.js";import{Confirmable as Gt}from"./confirmable/Confirmable.js";export{A as Accordion,To as ArrowNavigationButton,$o as AutocompleteBase,Hr as AutocompleteControl,u as Badge,a as Button,l as ButtonIcon,D as Calendar,uo as CarouselBase,ho as CarouselContent,Io as CarouselSlide,rr as CheckboxBase,Gr as CheckboxControl,vt as Chips,er as Combobox,St as ComboboxControl,Gt as Confirmable,gt as Controlled,_o as CustomLink,y as DATE_VISIBLE_PATTERN,Vr as DadataAddress,Kr as DadataAuto,jr as DadataCountry,Jr as DadataFio,Ur as DadataOrganization,ao as DataTable,oo as DataTableColumnHeader,mr as DayPickerBase,Wr as DayPickerControl,Ao as Dialog,Ht as Divider,Po as DotsNavigations,Rt as DropdownItem,Lt as DropdownList,to as EditableCell,Zr as EditorControl,wt as EmptyList,P as FloatButton,Fo as Heading,E as Hint,Mo as Icon,fr as InputBase,ot as InputControl,Lr as InputCurrencyBase,at as InputCurrencyControl,nr as InputOtpBase,pt as InputOtpControl,Qo as KeyboardShortcuts,T as Loader,lr as MaskInput,tt as MaskInputControl,z as Modal,_ as Notification,Eo as NotificationProvider,io as Pagination,s as PhoneView,F as Popover,Nt as Portal,M as ProgressBar,sr as RadioGroupBase,dt as RadioGroupCardControl,xt as RadioGroupControl,it as RadioGroupTabControl,ur as RadioItem,Tr as RadioItemCard,Ir as RadioItemTab,t as ResponsiveContainer,I as Skeleton,ko as SlideFullScreen,yo as SlideOnlyImage,Do as SlideProductCard,Pr as SliderBase,Ct as SliderControl,Xo as Slot,Dr as SwitchBase,bt as SwitchControl,Y as Table,j as TableBody,q as TableCaption,J as TableCell,Q as TableFooter,W as TableHead,X as TableHeader,xo as TablePagination,Z as TableRow,po as TableUtils,O as TabsSwitcher,yr as TextareaBase,ct as TextareaControl,Nr as Uncontrolled,kr as UploaderBase,Bt as UploaderControl,Oo as allowedIcons,zo as brandLogos,p as buttonPrimitiveIntent,f as buttonPrimitiveSize,x as buttonPrimitiveTextFormat,n as buttonPrimitiveType,hr as bytesToMegabytes,v as defaultClassNames,k as formatDateToLocaleString,R as formatDateToMonthString,h as formatDateToYearString,Yo as linkPrimitiveIconIntent,jo as linkPrimitiveIntent,qo as linkPrimitiveSize,wr as megabytesToBytes,so as usePagination};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l=Object.defineProperty;var o=(a,t,e)=>t in a?l(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var s=(a,t,e)=>o(a,typeof t!="symbol"?t+"":t,e);import{localStorageActions as h}from"../localStorageActions.js";class _{constructor(){s(this,"_store",new Map)}clearItems(...t){for(const e of t)this._store.delete(e)}getItem(t){return this._store.get(t)??null}setItem(t,e){this._store.set(t,e)}}const i=class i{constructor(t){s(this,"_variables",[]);s(this,"_listeners",new Map);s(this,"_nextListenerId",0);s(this,"_storeContext");s(this,"get",t=>this._variables.find(e=>e._id===t));s(this,"append",t=>{this._variables.push(t),this.collect()});s(this,"clear",()=>{this._variables=[],this.collect()});s(this,"entriesOf",(...t)=>{const e=[];for(const r of this._variables)t.includes(r.key)&&e.push([r.key,r.value]);return e});s(this,"remove",t=>{this._variables=this._variables.filter(e=>e.key!==t),this.collect()});s(this,"replace",t=>(this._variables=t,this.collect()));s(this,"update",(t,e)=>{const r=this._variables.map(n=>n._id===t?e:n);return this.replace(r)});s(this,"observe",t=>{const e=Symbol(this._nextListenerId++);return this._listeners.set(e,t),()=>{this._listeners.delete(e)}});this._store=t,typeof window>"u"?this._storeContext=new _:this._storeContext=h,this._variables=this._storeContext.getItem(this._store)??[]}static unwrap(t){return t.replace(/\$\{|}/g,"")}static wrap(t){return this._VARIABLE_PATTERN.replace("variable",t)}static match(t){return t.match(this._VARIABLE_REGEX)}static getInstance(t){const e=i._instance.get(t);if(!e){const r=new i(t);return i._instance.set(t,r),r}return e}get variables(){return this._variables}collect(){return this._storeContext.setItem(this._store,this._variables),this._listeners.forEach(t=>t(this._variables)),this._variables}has(t){return this._variables.some(e=>e.key===t)}};s(i,"_VARIABLE_REGEX",/\$\{([^}]+)}/g),s(i,"_VARIABLE_PATTERN","${variable}"),s(i,"_instance",new Map);let c=i;export{c as VariableContextHolder};
|
|
2
2
|
//# sourceMappingURL=variableContextHolder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableContextHolder.js","sources":["../../../../../lib/shared/utils/variableHolder/variableContextHolder.ts"],"sourcesContent":["import { localStorageActions } from '../localStorageActions'\n\nexport interface Variable<Key = string, Value = string> {\n _id: string\n key: Key\n value: Value\n createdAt: string\n updatedAt: string\n description: string\n}\n\nexport type VariableEntry<Key = string, Value = string> = [Key, Value]\n\nexport interface IVariableContextHolder<Key, Value> {\n variables: Variable<Key, Value>[]\n append: (variable: Variable<Key, Value>) => void\n remove: (key: Key) => void\n has: (key: Key) => boolean\n replace: (variables: Variable<Key, Value>[]) => void\n clear: () => void\n update: (id: string, variable: Variable<Key, Value>) => void\n entriesOf: (...keys: Key[]) => VariableEntry<Key, Value>[]\n observe: (listener: (variables: Variable<Key, Value>[]) => void) => () => void\n get: (key: Key) => Variable<Key, Value> | undefined\n}\n\n/**\n * Класс для управления переменными\n */\nexport class VariableContextHolder<Key extends string = string, Value = string> implements IVariableContextHolder<Key, Value> {\n private _variables: Variable<Key, Value>[] = []\n private _listeners = new Map<symbol, (variables: Variable<Key, Value>[]) => void>()\n private _nextListenerId: number = 0\n\n private static _VARIABLE_REGEX: RegExp = /\\$\\{([^}]+)}/g\n private static _VARIABLE_PATTERN: string = '${variable}'\n private static _instance = new Map<string, VariableContextHolder>()\n\n private constructor(private _store: string) {\n this.
|
|
1
|
+
{"version":3,"file":"variableContextHolder.js","sources":["../../../../../lib/shared/utils/variableHolder/variableContextHolder.ts"],"sourcesContent":["import { localStorageActions } from '../localStorageActions'\n\nexport interface Variable<Key = string, Value = string> {\n _id: string\n key: Key\n value: Value\n createdAt: string\n updatedAt: string\n description: string\n}\n\nexport type VariableEntry<Key = string, Value = string> = [Key, Value]\n\nexport interface IVariableContextHolder<Key, Value> {\n variables: Variable<Key, Value>[]\n append: (variable: Variable<Key, Value>) => void\n remove: (key: Key) => void\n has: (key: Key) => boolean\n replace: (variables: Variable<Key, Value>[]) => void\n clear: () => void\n update: (id: string, variable: Variable<Key, Value>) => void\n entriesOf: (...keys: Key[]) => VariableEntry<Key, Value>[]\n observe: (listener: (variables: Variable<Key, Value>[]) => void) => () => void\n get: (key: Key) => Variable<Key, Value> | undefined\n}\n\nexport interface VariableStore {\n setItem: <T>(key: string, value: T) => void\n getItem: <T>(key: string) => T | null\n clearItems: (...keys: string[]) => void\n}\n\nclass InMemoryVariableStore implements VariableStore {\n private _store = new Map<string, unknown>()\n\n constructor() {}\n\n clearItems(...keys: string[]): void {\n for (const key of keys) {\n this._store.delete(key)\n }\n }\n\n getItem<T>(key: string): T | null {\n return (this._store.get(key) as T) ?? null\n }\n\n setItem<T>(key: string, value: T): void {\n this._store.set(key, value)\n }\n}\n\n/**\n * Класс для управления переменными\n */\nexport class VariableContextHolder<Key extends string = string, Value = string> implements IVariableContextHolder<Key, Value> {\n private _variables: Variable<Key, Value>[] = []\n private _listeners = new Map<symbol, (variables: Variable<Key, Value>[]) => void>()\n private _nextListenerId: number = 0\n private _storeContext: VariableStore\n\n private static _VARIABLE_REGEX: RegExp = /\\$\\{([^}]+)}/g\n private static _VARIABLE_PATTERN: string = '${variable}'\n private static _instance = new Map<string, VariableContextHolder>()\n\n private constructor(private _store: string) {\n if (typeof window === 'undefined') {\n this._storeContext = new InMemoryVariableStore()\n } else {\n this._storeContext = localStorageActions\n }\n\n this._variables = this._storeContext.getItem<Variable<Key, Value>[]>(this._store) ?? []\n }\n\n static unwrap(variable: string): string {\n return variable.replace(/\\$\\{|}/g, '')\n }\n\n static wrap(variable: string): string {\n return this._VARIABLE_PATTERN.replace('variable', variable)\n }\n\n static match(pattern: string): string[] | null {\n return pattern.match(this._VARIABLE_REGEX) as string[] | null\n }\n\n // use only a singleton instance, do not create duplicated instances of each store key\n public static getInstance(store: string): VariableContextHolder {\n const instance = VariableContextHolder._instance.get(store)\n\n if (!instance) {\n const holder = new VariableContextHolder(store)\n VariableContextHolder._instance.set(store, holder)\n\n return holder\n }\n\n return instance\n }\n\n get variables() {\n return this._variables\n }\n\n private collect() {\n this._storeContext.setItem(this._store, this._variables)\n this._listeners.forEach((listener) => listener(this._variables))\n\n return this._variables\n }\n\n get = (id: string) => {\n return this._variables.find((variable) => variable._id === id)\n }\n\n append = (variable: Variable<Key, Value>) => {\n this._variables.push(variable)\n this.collect()\n }\n\n clear = () => {\n this._variables = []\n this.collect()\n }\n\n entriesOf = (...keys: Key[]): VariableEntry<Key, Value>[] => {\n const entries: VariableEntry<Key, Value>[] = []\n\n for (const variable of this._variables) {\n if (keys.includes(variable.key)) entries.push([variable.key, variable.value])\n }\n\n return entries\n }\n\n remove = (key: Key) => {\n this._variables = this._variables.filter((v) => v.key !== key)\n this.collect()\n }\n\n replace = (variables: Variable<Key, Value>[]): Variable<Key, Value>[] => {\n this._variables = variables\n\n return this.collect()\n }\n\n update = (id: string, variable: Variable<Key, Value>): Variable<Key, Value>[] => {\n const updated = this._variables.map((v) => (v._id === id ? variable : v))\n\n return this.replace(updated)\n }\n\n observe = (listener: (variables: Variable<Key, Value>[]) => void): (() => void) => {\n const listenerId = Symbol(this._nextListenerId++)\n this._listeners.set(listenerId, listener)\n\n return () => {\n this._listeners.delete(listenerId)\n }\n }\n\n has(key: Key): boolean {\n return this._variables.some((variable) => variable.key === key)\n }\n}\n"],"names":["InMemoryVariableStore","__publicField","keys","key","value","_VariableContextHolder","_store","id","variable","entries","v","variables","updated","listener","listenerId","localStorageActions","pattern","store","instance","holder","VariableContextHolder"],"mappings":"oOAgCA,MAAMA,CAA+C,CAGnD,aAAc,CAFNC,EAAA,kBAAa,IAEN,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