@alphakits/ui 1.27.34 → 1.27.35
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/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/amount-input/component.js +1 -1
- package/dist/amount-input/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/back-button/component.d.ts +9 -0
- package/dist/back-button/component.js +1 -0
- package/dist/back-button/index.d.ts +1 -9
- package/dist/back-button/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/bottom-sheet/component.js +1 -1
- package/dist/bottom-sheet/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/components/select-button/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/use-calendar.js +1 -1
- package/dist/calendar/use-period.js +1 -1
- package/dist/calendar/utils.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.js +1 -1
- package/dist/{capitalize-ed61513a.js → capitalize-4f57efc0.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{component-dcf8fb99.js → component-0964813d.js} +1 -1
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-functions.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/empty-page/component.js +1 -1
- package/dist/empty-page/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/components/form-footer/index.js +1 -1
- package/dist/form/components/form-loading/index.js +1 -1
- package/dist/form/components/form-wrapper/index.js +1 -1
- package/dist/form/components/index.d.ts +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/base-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/header-search/component.js +1 -1
- package/dist/header-search/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-one/index.js +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-gallery/component.js +1 -1
- package/dist/image-gallery/components/header/index.js +1 -1
- package/dist/image-gallery/components/header-info-block/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/index.js +1 -1
- package/dist/image-gallery/components/image-viewer/slide.js +1 -1
- package/dist/image-gallery/components/index.js +1 -1
- package/dist/image-gallery/index.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index-0411c0aa.js +1 -0
- package/dist/{index-57bb6341.js → index-55bbbbcf.js} +1 -1
- package/dist/{index-8122e759.js → index-6dfe8c16.js} +1 -1
- package/dist/{index-17772549.js → index-95c2d7ac.js} +1 -1
- package/dist/{index-1912e93f.js → index-a1b15e4c.js} +1 -1
- package/dist/{index-3b901f50.js → index-a6f32c83.js} +1 -1
- package/dist/index-a7f524c0.js +1 -0
- package/dist/{index-0e36002e.js → index-acf7aeeb.js} +1 -1
- package/dist/{index-70b31c9c.js → index-b6b5bedf.js} +1 -1
- package/dist/index-b95dd1d6.js +1 -0
- package/dist/index-d443d11d.js +1 -0
- package/dist/{index-8d728b4d.js → index-e5aaea7a.js} +2 -2
- package/dist/{index-725d9f40.js → index-ff52e1e7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.ts +1 -0
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.js +1 -1
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/input-ghost/component.js +1 -1
- package/dist/input-ghost/index.js +1 -1
- package/dist/isSymbol-f51f753c.js +1 -0
- package/dist/link/component.js +1 -1
- package/dist/link/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-back-button/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/components/modals/modal.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/modal/utils/delete-property-by-id.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- package/dist/{parse-query-params-6a85d32d.js → parse-query-params-d048e76d.js} +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/stepped-progress-bar/step-bar.js +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/dist/{use-image-render-component-c6fc3b97.js → use-image-render-component-12d1451a.js} +1 -1
- package/dist/utils/format-date/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/vars/typography.css +2 -2
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +2 -2
- package/dist/index-56528c02.js +0 -1
- package/dist/index-56845e99.js +0 -1
- package/dist/index-7dd8e815.js +0 -1
- package/dist/index-f9416adc.js +0 -1
- package/dist/isSymbol-8f3656e3.js +0 -1
- /package/dist/{ActionCopyM-f2f8518b.js → ActionCopyM-6bd62545.js} +0 -0
- /package/dist/{CancelM-62e4ce58.js → CancelM-995789e5.js} +0 -0
- /package/dist/{CheckmarkCircleM-88595e8d.js → CheckmarkCircleM-eaa97efe.js} +0 -0
- /package/dist/{ChevronBackM-62febf48.js → ChevronBackM-35b93368.js} +0 -0
- /package/dist/{ChevronBackS-7ad8335e.js → ChevronBackS-104cbda8.js} +0 -0
- /package/dist/{ChevronDownS-63776f6a.js → ChevronDownS-3f25432e.js} +0 -0
- /package/dist/{ChevronForwardM-2ea9badc.js → ChevronForwardM-85dbdbb5.js} +0 -0
- /package/dist/{ChevronForwardS-1a9e08b9.js → ChevronForwardS-c349a0d5.js} +0 -0
- /package/dist/{ClockCircleM-97cbdf98.js → ClockCircleM-15f6a0b3.js} +0 -0
- /package/dist/{CloseM-465b6765.js → CloseM-e136970c.js} +0 -0
- /package/dist/{CloseS-22235ee2.js → CloseS-9e8f6473.js} +0 -0
- /package/dist/{ControllerS-b80e1521.js → ControllerS-ac9ae58d.js} +0 -0
- /package/dist/{EditS-a5dfedd6.js → EditS-b08c9a76.js} +0 -0
- /package/dist/{MinusM-4b4ddd74.js → MinusM-1dfa530d.js} +0 -0
- /package/dist/{MoverS-ed95f894.js → MoverS-e424fe97.js} +0 -0
- /package/dist/{NextS-e05554f1.js → NextS-c12e2647.js} +0 -0
- /package/dist/{PhotoS-482b436f.js → PhotoS-4f30de63.js} +0 -0
- /package/dist/{PlusS-b4084217.js → PlusS-e229b25e.js} +0 -0
- /package/dist/{SearchM-577b192e.js → SearchM-18e1942a.js} +0 -0
- /package/dist/{TrashM-042702b1.js → TrashM-49764f64.js} +0 -0
- /package/dist/{YoutubeM-f2e392dd.js → YoutubeM-447fe180.js} +0 -0
- /package/dist/{_commonjsHelpers-b9b90a4b.js → _commonjsHelpers-0eca42d1.js} +0 -0
- /package/dist/{colors.module-b9eac50e.js → colors.module-3ac4bc04.js} +0 -0
- /package/dist/{component-dcf8fb99.d.ts → component-0964813d.d.ts} +0 -0
- /package/dist/{component-56d0a0b7.d.ts → component-71ad1557.d.ts} +0 -0
- /package/dist/{component-56d0a0b7.js → component-71ad1557.js} +0 -0
- /package/dist/{contact-block-3fbaa5e6.d.ts → contact-block-09064200.d.ts} +0 -0
- /package/dist/{contact-block-3fbaa5e6.js → contact-block-09064200.js} +0 -0
- /package/dist/{gutters.module-679a3906.js → gutters.module-26480e92.js} +0 -0
- /package/dist/{index-c4f9a1af.js → index-a4031e60.js} +0 -0
- /package/dist/{index-c000c972.js → index-ce8b0f42.js} +0 -0
- /package/dist/{index-725d9f40.d.ts → index-ff52e1e7.d.ts} +0 -0
- /package/dist/{intersection-observer-ca6f74b3.js → intersection-observer-887e09c3.js} +0 -0
- /package/dist/{parse-query-params-6a85d32d.d.ts → parse-query-params-d048e76d.d.ts} +0 -0
- /package/dist/{slide-6801bab3.d.ts → slide-9b7c1f39.d.ts} +0 -0
- /package/dist/{slide-6801bab3.js → slide-9b7c1f39.js} +0 -0
- /package/dist/{step-bar-f9dd7ebd.d.ts → step-bar-f503a45f.d.ts} +0 -0
- /package/dist/{step-bar-f9dd7ebd.js → step-bar-f503a45f.js} +0 -0
- /package/dist/{tslib.es6-af5ef024.js → tslib.es6-bf9f8d77.js} +0 -0
- /package/dist/{use-image-render-component-c6fc3b97.d.ts → use-image-render-component-12d1451a.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-bf9f8d77.js";import t,{useState as n}from"react";import{C as o}from"../ChevronDownS-3f25432e.js";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as s}from"../padding/component.js";import{Typography as p}from"../typography/component.js";import"react-merge-refs";import"../MinusM-1dfa530d.js";import"../hooks/useFocus/index.js";import"../isSymbol-f51f753c.js";import"../_commonjsHelpers-0eca42d1.js";import"resize-observer";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";var d={list_head:"index-module_list_head__hWdR5",collapse_btn:"index-module_collapse_btn__fZF4g",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__A5t0p"},u=function(u){var f=u.parents,h=u.childs,b=u.selected,_=u.checkableParent,j=u.collapsable,v=u.disabled,E=u.onChange,g=[],y=Array.isArray(b)?b:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&g.push(t)}));var x=n(g),k=x[0],C=x[1],F=function(t){t.forEach((function(n){(null==y?void 0:y.includes(n))?E(y.filter((function(e){return!t.includes(e)}))):E(e(e([],y),t))}))},w=function(e){var n,o,l=e.element;return _?t.createElement(r,{block:!0,disabled:v,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==y?void 0:y.includes(e))&&(o=!0)})),o),onChange:function(){return F(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(p.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,k.map((function(e,n){var p;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(w,{element:e}),j&&t.createElement(m,{onClick:function(){return function(e){var t=k.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=k.concat(t);C(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(p={},p[d.collapse_btn_collapsed]=e.collapsed,p)),icon:o})),!e.collapsed&&t.createElement(s,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return F([e.id])},checked:null==y?void 0:y.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==k?void 0:k.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-bf9f8d77.js";import"react";import"../ChevronDownS-3f25432e.js";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../MinusM-1dfa530d.js";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../isSymbol-f51f753c.js";import"../_commonjsHelpers-0eca42d1.js";import"resize-observer";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{E as t}from"../EditS-
|
|
1
|
+
import o from"react";import{E as t}from"../EditS-b08c9a76.js";import{P as e}from"../PlusS-e229b25e.js";import{Button as r}from"../button/component.js";import{IconButton as n}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";var m=function(e){var r=e.location,m=e.onClick;return o.createElement(o.Fragment,null,o.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},r.address),o.createElement(n,{icon:t,onClick:m,size:"s",view:"ghost"}))},s=function(t){var n=t.onClick;return o.createElement(r,{leftAddons:o.createElement(e,null),size:"xs",onClick:n,view:"secondary"},"Добавить квест")};export{s as Addons,m as Content};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-
|
|
1
|
+
import e,{useState as o,useEffect as t}from"react";import{C as n}from"../ChevronDownS-3f25432e.js";import r from"classnames";import{Collapse as m}from"../collapse/component.js";import{IconButton as i}from"../icon-button/component.js";import{Typography as s}from"../typography/component.js";import"../isSymbol-f51f753c.js";import"../_commonjsHelpers-0eca42d1.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__tyP5w",l="index-module_row__g6gnE",c="index-module_label__kuH6r",p="index-module_collapse_button__YrBPb",d="index-module_expanded_icon__AFfTh",_="index-module_collapse_container__YDAEr",u=function(u){var f,j=u.label,x=u.content,b=u.expanded,y=u.addons,h=u.children,v=u.disabled,g=o(b),E=g[0],w=g[1];return t((function(){w(b)}),[b]),e.createElement("div",null,e.createElement("div",{className:a},e.createElement("div",{className:l},j&&e.createElement(s.Text,{className:c,color:"secondary",view:"title",weight:"medium"},j),x),e.createElement("div",{className:l},y,e.createElement(i,{onClick:function(){return w(!E)},className:r(p,(f={},f[d]=E,f)),disabled:v,view:"ghost",icon:n,size:"s"}))),e.createElement(m,{contentClassName:_,expanded:E},h))};export{u as CollapsableRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-
|
|
1
|
+
export{CollapsableRow}from"./component.js";import"react";import"../ChevronDownS-3f25432e.js";import"classnames";import"../collapse/component.js";import"../isSymbol-f51f753c.js";import"../_commonjsHelpers-0eca42d1.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-
|
|
1
|
+
import e,{forwardRef as n,useRef as t,useState as r,useCallback as i,useEffect as o,useMemo as a}from"react";import u from"classnames";import{a as c,i as s}from"../isSymbol-f51f753c.js";import{ResizeObserver as f}from"resize-observer";import{Link as l}from"../link/component.js";import"../_commonjsHelpers-0eca42d1.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";var d=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},m=function(){return c.Date.now()},v=/\s/;var p=function(e){for(var n=e.length;n--&&v.test(e.charAt(n)););return n},x=/^\s+/;var h=function(e){return e?e.slice(0,p(e)+1).replace(x,""):e},_=NaN,g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,w=/^0o[0-7]+$/i,y=parseInt;var b=function(e){if("number"==typeof e)return e;if(s(e))return _;if(d(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=d(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=h(e);var t=E.test(e);return t||w.test(e)?y(e.slice(2),t?2:8):g.test(e)?_:+e},T="Expected a function",j=Math.max,k=Math.min;var N=function(e,n,t){var r,i,o,a,u,c,s=0,f=!1,l=!1,v=!0;if("function"!=typeof e)throw new TypeError(T);function p(n){var t=r,o=i;return r=i=void 0,s=n,a=e.apply(o,t)}function x(e){var t=e-c;return void 0===c||t>=n||t<0||l&&e-s>=o}function h(){var e=m();if(x(e))return _(e);u=setTimeout(h,function(e){var t=n-(e-c);return l?k(t,o-(e-s)):t}(e))}function _(e){return u=void 0,v&&r?p(e):(r=i=void 0,a)}function g(){var e=m(),t=x(e);if(r=arguments,i=this,c=e,t){if(void 0===u)return function(e){return s=e,u=setTimeout(h,n),f?p(e):a}(c);if(l)return clearTimeout(u),u=setTimeout(h,n),p(c)}return void 0===u&&(u=setTimeout(h,n)),a}return n=b(n)||0,d(t)&&(f=!!t.leading,o=(l="maxWait"in t)?j(b(t.maxWait)||0,n):o,v="trailing"in t?!!t.trailing:v),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=i=u=void 0},g.flush=function(){return void 0===u?a:_(m())},g},z="index-module_collapse__ORa-f",C="index-module_content__UDk-m",L="index-module_expandedContent__iQszl",H="index-module_children_wrap__ekYCk",O=n((function(n,c){var s,d=n.expanded,m=n.defaultExpanded,v=n.collapsedLabel,p=n.expandedLabel,x=n.children,h=n.className,_=n.contentClassName,g=n.id,E=n.onExpandedChange,w=n.onTransitionEnd,y=n.dataTestId,b=n.linkProps,T=void 0===d,j=t(null),k=t(null),O=r(m||d),$=O[0],D=O[1],I=T?$:d,M=i((function(){var e;k.current&&j.current&&(e=I?k.current.offsetHeight:0,j.current.style.height=e+"px")}),[I]),W=i((function(){w&&w(d)}),[d,w]),A=i((function(){T&&D(!I),console.log(I),E&&E()}),[I,E,T]);o((function(){var e=N((function(){return M()}),300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[M]),o((function(){var e=new f(M);return k.current&&e.observe(k.current),function(){e.disconnect()}}),[M]),o((function(){return M()}),[I,M]);var F=a((function(){var e,n=null===(e=j.current)||void 0===e?void 0:e.offsetHeight;return{height:I&&!n?"0px":n+"px"}}),[I]),P=!!p||!!v;return e.createElement("div",{ref:c,className:u(h,z),id:g,"data-test-id":y},e.createElement("div",{onTransitionEnd:W,ref:j,className:u(C,_,(s={},s[L]=I,s)),style:F},e.createElement("div",{className:u(H),ref:k},x)),P&&e.createElement(l,{view:(null==b?void 0:b.view)||"secondary",size:(null==b?void 0:b.size)||"m",pseudo:!0,onClick:A},I?p:v))}));export{O as Collapse};
|
package/dist/collapse/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-
|
|
1
|
+
export{Collapse}from"./component.js";import"react";import"classnames";import"../isSymbol-f51f753c.js";import"../_commonjsHelpers-0eca42d1.js";import"resize-observer";import"../link/component.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as m}from"./table/components/pagination/index.js";import{TableHeader as
|
|
1
|
+
import{TableCell as e}from"./table/components/cell/component.js";import t,{useCallback as l,useEffect as o,useMemo as r}from"react";import n from"classnames";import{Cells as a}from"./table/components/cells/index.js";import{EmptyList as i}from"./table/components/empty-list/index.js";import{Error as c}from"./table/components/error/index.js";import{Loading as s}from"./table/components/loading/index.js";import{Pagination as m}from"./table/components/pagination/index.js";import{TableHeader as d}from"./table/components/table-header/index.js";import{useTableData as u}from"./table/hooks/use-table-data.js";import{addQueryParam as p}from"./table/utils/add-query-param.js";import{getTags as f}from"./table/utils/get-tags.js";import{a as v}from"./PhotoS-4f30de63.js";import{Image as g}from"./image/component.js";import"./image/types.js";import"./cell/pure/component.js";import{removeQueryParam as b}from"./table/utils/remove-query-param.js";import{resetQueryParam as h}from"./table/utils/reset-query-param.js";function w(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function C(e,t,l){return e?"string"==typeof e?t[e]:"function"==typeof e?e({row:t,refetch:l}):null:null}function E(e){var l=e.columns,o=e.data,r=e.refetch,n=o.map((function(e){return{row:e,cells:l.map((function(l){var o,n,a,i,c,s,m,d,u,p,f=C((null===(o=l.row)||void 0===o?void 0:o.title)||l.accessor,e,r);if(null===(n=l.row)||void 0===n?void 0:n.image){var b=w(null===(a=l.row)||void 0===a?void 0:a.image,e,r);p=b?t.createElement(g,{bgColor:"secondary",src:b,text:null==f?void 0:f.toString(),view:"ellipse"}):t.createElement(g,{bgColor:"secondary",icon:t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else if(null===(i=l.row)||void 0===i?void 0:i.icon){var h=w(null===(c=l.row)||void 0===c?void 0:c.icon,e,r);p=t.createElement(g,{icon:h||t.createElement(v,null),text:null==f?void 0:f.toString(),view:"ellipse"})}else(null===(s=l.row)||void 0===s?void 0:s.customAddon)&&(p=w(null===(m=l.row)||void 0===m?void 0:m.customAddon,e,r));return t.createElement(_.Cell,{title:f,align:l.align,subtitle:(null===(d=l.row)||void 0===d?void 0:d.subtitle)&&C(null===(u=l.row)||void 0===u?void 0:u.subtitle,e,r),addon:p})}))}}));return n}var j={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function x(e){var v=e.columns,g=e.searchPlaceholder,w=void 0===g?"Поиск по таблице":g,C=e.records,x=e.hideSearch,_=e.rightHeaderAddons,y=e.leftHeaderAddons,k=e.filtersButtonLabel,P=e.createButtonLabel,S=e.loading,B=e.height,A=void 0===B?"fill":B,L=e.tagsBuilder,F=e.promise,H=e.onRowClick,T=e.onCreateClick,q=e.onFiltersClick,N=e.refetch,D=e.language,Q=u({promise:F,records:C}),R=Q.loading,V=Q.error,z=Q.data,G=Q.total,I=Q.params,J=Q.pagesCount,K=Q.updateData,M=T?function(){return T(K)}:void 0,O=l((function(e){h(e),K()}),[]);o((function(){K()}),[]);var U=function(){return q?q({submitCallback:function(e){return O(e)},initialValues:I}):null},W=function(e){p(e),K()},X=f({params:(null==I?void 0:I.where)||{},onDelete:function(e,t){b(e,t),K()},tagsBuilder:L,onClick:U}),Y=r((function(){return E({columns:v,data:z,refetch:N||K})}),[z,v]),Z=R||S;return t.createElement("div",{className:n(j.table_wrapper,j[A])},(!x||_||y||T||q)&&t.createElement(d,{language:D,hideSearch:x,rightHeaderAddons:_,leftHeaderAddons:y,searchText:(null==I?void 0:I.searchText)||"",addParam:W,searchPlaceholder:w,filtersButtonLabel:k,tags:X,onCreateClick:M,createButtonLabel:P,onFiltersClick:U,showFiltersButton:!!q}),t.createElement("div",{className:j.table},t.createElement("table",{cellSpacing:"0",cellPadding:"0"},t.createElement(a,{sort:null==I?void 0:I.sort,order:null==I?void 0:I.order,addParam:W,columns:v}),t.createElement("tbody",null,V&&t.createElement(c,{language:D}),!Y.length&&!Z&&!V&&t.createElement(i,{language:D}),Z&&t.createElement(s,{columnsLength:v.length}),Y.map((function(e){var l,o=e.row,r=e.cells;return t.createElement("tr",{onClick:function(){return e=o,null==H?void 0:H(e,K);var e},className:n((l={},l[j.clickable]=!!H,l)),style:{visibility:Z?"collapse":"visible"}},r.map((function(e){return e})))}))))),!!F&&t.createElement(m,{language:D,currentPage:I?+I.page:1,recordsPerPage:I?+I.limit:10,pagesCount:+J,addParam:W,total:+G}))}var _={Cell:e,TableComponent:x};export{_ as T,x as a,E as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{A as o}from"../ActionCopyM-
|
|
1
|
+
import t from"react";import{A as o}from"../ActionCopyM-6bd62545.js";import{IconButton as e}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as i}from"../typography/component.js";import"../tslib.es6-bf9f8d77.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-eaa97efe.js";import"../ClockCircleM-15f6a0b3.js";import"../CloseS-9e8f6473.js";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_wrapper__dZRhL",p="index-module_link_button__VKWD-",n=function(n){var s=n.text,a=n.fullText,c=n.color;return t.createElement("div",{className:m},t.createElement(i.Text,{view:"title",weight:"medium",color:c||"primary"},s),t.createElement(e,{icon:o,className:p,onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a||s).then((function(){r({title:"Copied!",view:"positive",offset:30})}))},view:"ghost"}))};export{n as CopyButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-
|
|
1
|
+
export{CopyButton}from"./component.js";import"react";import"../ActionCopyM-6bd62545.js";import"../icon-button/component.js";import"../tslib.es6-bf9f8d77.js";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-eaa97efe.js";import"../ClockCircleM-15f6a0b3.js";import"../CloseS-9e8f6473.js";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/date/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a as o}from"../tslib.es6-
|
|
1
|
+
import{_ as t,a as o}from"../tslib.es6-bf9f8d77.js";import e from"react";import{Typography as r}from"../typography/component.js";import"../toast-notifier/component.js";import{formatDate as a}from"../utils/format-date/index.js";import"../typography/text/component.js";import"classnames";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-eaa97efe.js";import"../ClockCircleM-15f6a0b3.js";import"../CloseS-9e8f6473.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../index-95c2d7ac.js";import"../index-a4031e60.js";import"../index-a6f32c83.js";import"../index-acf7aeeb.js";import"../index-ce8b0f42.js";var m=function(m){var i=m.className,s=m.dataTestId,p=m.date,n=m.time,c=m.format,d=void 0===c?"dd.MM.yyyy":c,j=m.language,f=void 0===j?"de":j,l=t(m,["className","dataTestId","date","time","format","language"]);return e.createElement(r.Text,o({},l,{className:i,"data-test-id":s}),a(p,{format:d,lang:f,time:n}))};export{m as FormattedDate};
|
package/dist/date/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormattedDate}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormattedDate}from"./component.js";import"../tslib.es6-bf9f8d77.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"../CheckmarkCircleM-eaa97efe.js";import"../ClockCircleM-15f6a0b3.js";import"../CloseS-9e8f6473.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"../utils/format-date/index.js";import"../index-95c2d7ac.js";import"../index-a4031e60.js";import"../index-a6f32c83.js";import"../index-acf7aeeb.js";import"../index-ce8b0f42.js";
|
package/dist/date-functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as add,p as parseISO,s as subWeeks}from"./index-
|
|
1
|
+
export{a as add,p as parseISO,s as subWeeks}from"./index-b6b5bedf.js";export{a as addDays,b as addMonths,i as isAfter,c as isBefore,d as isSameDay,s as startOfDay,e as startOfISOWeek,f as startOfWeek,g as subDays}from"./index-a1b15e4c.js";export{a as addYears,s as subYears}from"./index-0411c0aa.js";export{e as eachDayOfInterval,a as eachMonthOfInterval,b as eachYearOfInterval,c as endOfISOWeek,d as endOfWeek,f as endOfYear,i as isSameMonth,l as lastDayOfMonth,m as max,g as min,s as startOfMonth,h as startOfYear,j as subMonths}from"./index-55bbbbcf.js";export{f as format}from"./index-a6f32c83.js";export{i as isEqual,a as isLastDayOfMonth,b as isWithinInterval}from"./index-6dfe8c16.js";export{i as isSameYear,a as isThisYear}from"./index-a7f524c0.js";export{i as isThisMonth}from"./index-b95dd1d6.js";export{i as isToday}from"./index-d443d11d.js";export{p as parse}from"./index-acf7aeeb.js";import{t as r}from"./index-95c2d7ac.js";import{r as t,t as o}from"./index-a4031e60.js";import"./index-ce8b0f42.js";function n(a,s){t(2,arguments);var e=o(a),i=r(s);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}export{n as setYear};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{C as t}from"../ChevronBackM-
|
|
1
|
+
import e from"react";import{C as t}from"../ChevronBackM-35b93368.js";import{C as o}from"../ChevronForwardM-85dbdbb5.js";import a from"classnames";import{Button as r}from"../button/component.js";import{p as i,a as d,s as m}from"../index-b6b5bedf.js";import{f as s}from"../index-a6f32c83.js";import{e as n,i as c,c as p,g as l}from"../index-a1b15e4c.js";import{i as y}from"../index-d443d11d.js";import{IconButton as f}from"../icon-button/component.js";import{Typography as b}from"../typography/component.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-a4031e60.js";import"../index-95c2d7ac.js";import"../index-ce8b0f42.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";var j={date_switcher:"index-module_date_switcher__-TXru",date_wrap:"index-module_date_wrap__Tzlmm",day:"index-module_day__HX9YV",week:"index-module_week__s9uze"},_="yyyy-MM-dd",w="dd.MM.yy",x=function(x){var u=x.view,h=void 0===u?"day":u,v=x.startDate,g=x.onChange,k=x.minDate,C=x.maxDate,E=x.todayLabel,M=n(i(v)),D="day"===h?i(v):M,T=k?i(k):new Date,z=c(D,T),F=!C||p(D,i(C)),N=y(D);return e.createElement("div",{className:j.date_switcher},e.createElement(f,{disabled:!!k&&!z,onClick:function(){"day"===h&&g(s(l(D,1),_)),"week"===h&&g(s(m(D,1),_))},icon:t}),e.createElement("div",{className:a(j.date_wrap,j[h])},e.createElement(b.Text,{tag:"div",view:"title",color:"secondary",weight:"bold"},"day"===h?s(D,w):s(D,w)+" - "+s(d(D,{days:6}),w))),e.createElement(f,{disabled:!F,onClick:function(){"day"===h&&g(s(d(D,{days:1}),_)),"week"===h&&g(s(d(D,{days:7}),_))},icon:o}),e.createElement(r,{disabled:N,onClick:function(){g(s(new Date,_))},view:"ghost"},E))};export{x as DateSwitcher};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-
|
|
1
|
+
export{DateSwitcher}from"./component.js";import"react";import"../ChevronBackM-35b93368.js";import"../ChevronForwardM-85dbdbb5.js";import"classnames";import"../button/component.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../index-b6b5bedf.js";import"../index-a1b15e4c.js";import"../index-95c2d7ac.js";import"../index-a4031e60.js";import"../index-ce8b0f42.js";import"../index-a6f32c83.js";import"../index-d443d11d.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"../tslib.es6-bf9f8d77.js";import o from"react";import r from"classnames";import{Button as i}from"../button/component.js";import{Typography as m}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_wrapper__X4Vyh",l="index-module_overlay__GChru",s="index-module_image__qJIV8",n="index-module_subtitle__wdNZJ",c="index-module_button__DZYz9",p=function(p){var d=p.code,u=p.image,v=p.overlay,y=p.title,_=p.subtitle,g=p.buttonText,x=p.view,b=void 0===x?"primary":x,f=p.size,h=void 0===f?"m":f,j=e(p,["code","image","overlay","title","subtitle","buttonText","view","size"]);return o.createElement("div",{className:r(a,v&&l)},u&&o.createElement("img",{alt:y,className:s,src:u}),d&&o.createElement(m.Title,{view:"xlarge",weight:"bold",color:"primary",tag:"div"},d),o.createElement(m.Title,{weight:"bold",color:"primary",tag:"div"},y),_&&o.createElement(m.Text,{color:"secondary",className:n,tag:"div"},_),(!!(null==j?void 0:j.onClick)||(null==j?void 0:j.href))&&o.createElement(i,t({className:c,view:b,size:h},j),g))};export{p as EmptyPage};
|
package/dist/empty-page/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EmptyPage}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{EmptyPage}from"./component.js";import"../tslib.es6-bf9f8d77.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
package/dist/footer/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../tslib.es6-
|
|
1
|
+
import{a as e}from"../tslib.es6-bf9f8d77.js";import t from"react";import{F as a,Y as r,I as n,A as m,G as o}from"../YoutubeM-447fe180.js";import{Grid as l}from"../grid/component.js";import{IconButton as c}from"../icon-button/component.js";import{SectionWrapper as s}from"../section-wrapper/component.js";import{s as i,C as p}from"../contact-block-09064200.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-26480e92.js";import"../grid/row/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var u=function(u){var d=u.sections,E=void 0===d?[]:d,f=u.contacts,b=void 0===f?[]:f,k=u.company,v=u.email,j=u.address,N=u.facebookLink,g=u.instagramLink,h=u.youtubeLink,x=u.appText,w=u.google,y=u.appstore,F=N||g||h,B=x&&y&&w;return t.createElement(s,{pb:"m",pt:"l",isBlackBg:!0},t.createElement("div",{className:i.wrapper},t.createElement("div",{className:i.row_wrapper},t.createElement(l.Row,null,t.createElement(t.Fragment,null,E.map((function(e){return t.createElement(l.Col,{key:e.title,width:{desktop:2,mobile:12}},t.createElement("div",{className:i.block},t.createElement("span",{className:i.title},e.title),e.items.map((function(e){return t.createElement("a",{key:e.text,className:i.link,href:e.link},e.text)}))))})),t.createElement(l.Col,{key:"cont",width:{desktop:2,mobile:12}},t.createElement("div",{className:i.contacts},b.map((function(e){return t.createElement(p,{key:e.title,title:e.title,value:e.value})})),v&&t.createElement("div",{className:i.email},v),t.createElement("br",null),j&&t.createElement("div",{className:i.text},j),t.createElement("br",null),k&&t.createElement("div",{className:i.text},k),t.createElement("br",null),F&&t.createElement("div",{className:i.buttons},N&&t.createElement(c,e({},{href:N},{icon:a})),h&&t.createElement(c,e({},{href:h},{icon:r})),g&&t.createElement(c,e({},{href:g},{icon:n}))))))))),t.createElement("div",{className:i.bottomBlock},B&&t.createElement(t.Fragment,null,t.createElement("div",{className:i.text},x),t.createElement("div",{className:i.buttons},y&&t.createElement(c,e({},{href:y},{icon:m})),w&&t.createElement(c,e({},{href:w},{icon:o}))))))};export{u as Footer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{C as ContactBlock}from"../contact-block-
|
|
1
|
+
import"react";export{C as ContactBlock}from"../contact-block-09064200.js";
|
package/dist/footer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Footer}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Footer}from"./component.js";import"../tslib.es6-bf9f8d77.js";import"react";import"../YoutubeM-447fe180.js";import"../grid/component.js";import"../grid/col/component.js";import"classnames";import"../grid/utils/index.js";import"../gutters.module-26480e92.js";import"../grid/row/component.js";import"../icon-button/component.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../section-wrapper/component.js";import"../contact-block-09064200.js";
|
package/dist/form/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Button as o}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as r}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as i,showError as m}from"../utils/show-toast/index.js";import{RestForm as s}from"./templates/rest-form/index.js";import"../tslib.es6-
|
|
1
|
+
import e from"react";import{Button as o}from"../button/component.js";import{FlexColumns as t}from"../flex-columns/component.js";import{Input as r}from"../input/component.js";import{ModalContext as n}from"../modal/context.js";import{showSuccess as i,showError as m}from"../utils/show-toast/index.js";import{RestForm as s}from"./templates/rest-form/index.js";import"../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../modal/components/modals/index.js";import"../modal/components/modals/modal.js";import"../CloseM-e136970c.js";import"../modal/hooks/use-modal.js";import"uuid";import"../modal/utils/delete-property-by-id.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"../CheckmarkCircleM-eaa97efe.js";import"../ClockCircleM-15f6a0b3.js";import"../CloseS-9e8f6473.js";import"../toast-notifier/use-timer.js";import"../index-ff52e1e7.js";import"../index-e5aaea7a.js";import"../_commonjsHelpers-0eca42d1.js";import"./components/form-loading/index.js";import"../skeleton/component.js";import"./components/form-outer/index.js";import"./templates/rest-form/form.js";import"../back-button/component.js";import"../ActionCopyM-6bd62545.js";import"../YoutubeM-447fe180.js";import"../CancelM-995789e5.js";import"../MinusM-1dfa530d.js";import"../ChevronBackM-35b93368.js";import"../ChevronBackS-104cbda8.js";import"../ChevronDownS-3f25432e.js";import"../ChevronForwardM-85dbdbb5.js";import"../ChevronForwardS-c349a0d5.js";import"../ControllerS-ac9ae58d.js";import"../EditS-b08c9a76.js";import"../TrashM-49764f64.js";import"../MoverS-e424fe97.js";import"../NextS-c12e2647.js";import"../PhotoS-4f30de63.js";import"../PlusS-e229b25e.js";import"../SearchM-18e1942a.js";import"../image/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-12d1451a.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../icon-button/component.js";import"../sidepanel-header/component.js";import"./components/form-footer/index.js";import"./components/form-updating/index.js";var a={baz:"",bar:""},p={buz:"",bur:""},u=function(o){var n=e.useState(!0),a=n[0],u=n[1],c=e.useState(!1),l=c[0],d=c[1],f=e.useState(!1),j=f[0],b=f[1];e.useEffect((function(){setTimeout((function(){return u(!1)}),500)}),[]);return e.createElement(s,{recordId:827368276387,initialValues:p,customValidationFields:["bur"],save:function(){return new Promise((function(e){d(!0),setTimeout((function(){e(),d(!1),i("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){b(!0),setTimeout((function(){e(),b(!1),m("Some error from server","Error")}),3e3)}))},title:"custom title other",loading:a,submitButtonText:"submit",updating:l,removing:j,close:null==o?void 0:o.close,t:function(e){return e}},(function(o){var n=o.values,i=o.touched,m=o.errors,s=o.handleChange;return e.createElement(t,{columns:1,gr:16,gc:0},e.createElement(r,{label:"buz",value:n.buz,onChange:s("buz"),error:i.buz&&m.buz}),e.createElement(r,{label:"bur",value:n.bur,onChange:s("bur"),error:i.bur&&m.bur}))}))},c=function(p){var c=e.useState(!0),l=c[0],d=c[1],f=e.useState(!1),j=f[0],b=f[1],v=e.useState(!1),h=v[0],g=v[1],C=(0,e.useContext(n).openModal)(u);e.useEffect((function(){setTimeout((function(){return d(!1)}),500)}),[]);return e.createElement(s,{recordId:8273682763,initialValues:a,customValidationFields:["bar"],save:function(){return new Promise((function(e){b(!0),setTimeout((function(){e(),b(!1),i("","Saved")}),3e3)}))},remove:function(){return new Promise((function(e){g(!0),setTimeout((function(){e(),g(!1),m("Some error from server","Error")}),3e3)}))},title:"Настройки",subtitle:"Подпись к заголовку",back:function(){},softError:"Some error",loading:l,submitButtonText:"csdcds",updating:j,removing:h,close:null==p?void 0:p.close,t:function(e){return e}},(function(n){var i=n.values,m=n.touched,s=n.errors,a=n.handleChange;return e.createElement(t,{columns:1,gr:16,gc:0},e.createElement(r,{label:"baz",value:i.baz,onChange:a("baz"),error:m.baz&&s.baz}),e.createElement(r,{label:"bar",value:i.bar,onChange:a("bar"),error:m.bar&&s.bar}),e.createElement(o,{onClick:C},"openCrudModalOther"))}))},l=function(){var t=(0,e.useContext(n).openModal)(c);return e.createElement(e.Fragment,null,e.createElement(o,{onClick:t},"open crud modal"))};export{l as Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useEffect as o}from"react";import{Button as n}from"../../../button/component.js";import"../../../tslib.es6-
|
|
1
|
+
import e,{useRef as t,useEffect as o}from"react";import{Button as n}from"../../../button/component.js";import"../../../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"classnames";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var r="index-module_component__ijVOx",i=function(i){var s=i.submitButtonText,a=void 0===s?"save":s,l=i.customFooter,c=i.submit,m=i.close,d=i.children,u=i.loading,p=i.disabled,b=i.t,v=t(null);return o((function(){var e;null===(e=null==v?void 0:v.current)||void 0===e||e.focus()}),[v]),e.createElement("div",{className:r},l||e.createElement(e.Fragment,null,e.createElement(n,{view:"primary",size:"s",block:!0,loading:u,disabled:p,dataTestId:"buttonSave",onClick:function(){return c()},ref:v},b(a)),e.createElement(n,{block:!0,view:"secondary",size:"s",dataTestId:"buttonCancel",onClick:m},b("cancel")),d))};export{i as FormFooter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{FlexColumns as t}from"../../../flex-columns/component.js";import{Skeleton as l}from"../../../skeleton/component.js";import{FormOuter as m}from"../form-outer/index.js";import{a
|
|
1
|
+
import e from"react";import{FlexColumns as t}from"../../../flex-columns/component.js";import{Skeleton as l}from"../../../skeleton/component.js";import{FormOuter as m}from"../form-outer/index.js";import{a}from"../../../index-ff52e1e7.js";import"classnames";import"../../../index-e5aaea7a.js";import"../../../_commonjsHelpers-0eca42d1.js";var s="index-module_header__UtYpF",n="index-module_title__mrNu8",i="index-module_addon__-bw-y",r="index-module_input__MEN8P",c="index-module_buttons__PtGvG",o="index-module_button__hWCWD",d=function(){return e.createElement(t,{columns:1,gr:16},e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}),e.createElement(l,{visible:!0,className:r}))},u=function(){return e.createElement(m,null,e.createElement("div",{className:s},e.createElement(l,{visible:!0,className:n}),e.createElement(l,{visible:!0,className:i})),e.createElement(a,null,e.createElement(d,null)),e.createElement("div",{className:c},e.createElement(l,{visible:!0,className:o}),e.createElement(l,{visible:!0,className:o})))};export{u as FormLoading,d as FormLoadingCompact};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";export{a as FormWrapper}from"../../../index-
|
|
1
|
+
import"react";export{a as FormWrapper}from"../../../index-ff52e1e7.js";import"../../../index-e5aaea7a.js";import"../../../_commonjsHelpers-0eca42d1.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormFooter } from "./form-footer/index";
|
|
2
2
|
import { FormLoading } from "./form-loading/index";
|
|
3
3
|
import { FormUpdating } from "./form-updating/index";
|
|
4
|
-
import { FormWrapper } from "../../index-
|
|
4
|
+
import { FormWrapper } from "../../index-ff52e1e7";
|
|
5
5
|
type FormProps = {
|
|
6
6
|
Footer: typeof FormFooter;
|
|
7
7
|
Wrapper: typeof FormWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as
|
|
1
|
+
import{FormFooter as o}from"./form-footer/index.js";import{FormLoading as r}from"./form-loading/index.js";import{FormUpdating as e}from"./form-updating/index.js";import{a as m}from"../../index-ff52e1e7.js";import"react";import"../../button/component.js";import"../../tslib.es6-bf9f8d77.js";import"react-merge-refs";import"classnames";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../flex-columns/component.js";import"../../skeleton/component.js";import"./form-outer/index.js";import"../../index-e5aaea7a.js";import"../../_commonjsHelpers-0eca42d1.js";var t={Footer:o,Wrapper:m,Updating:e,Loading:r};export{t as Form};
|
package/dist/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"../index-
|
|
1
|
+
export{FiltersForm}from"./templates/filters-form/index.js";export{Form}from"./components/index.js";import"react";import"../index-ff52e1e7.js";import"../index-e5aaea7a.js";import"../_commonjsHelpers-0eca42d1.js";import"../sidepanel-header/component.js";import"classnames";import"../back-button/component.js";import"../ActionCopyM-6bd62545.js";import"../CheckmarkCircleM-eaa97efe.js";import"../YoutubeM-447fe180.js";import"../CancelM-995789e5.js";import"../MinusM-1dfa530d.js";import"../ChevronBackM-35b93368.js";import"../ChevronBackS-104cbda8.js";import"../ChevronDownS-3f25432e.js";import"../ChevronForwardM-85dbdbb5.js";import"../ChevronForwardS-c349a0d5.js";import"../ClockCircleM-15f6a0b3.js";import"../CloseM-e136970c.js";import"../CloseS-9e8f6473.js";import"../ControllerS-ac9ae58d.js";import"../EditS-b08c9a76.js";import"../TrashM-49764f64.js";import"../MoverS-e424fe97.js";import"../NextS-c12e2647.js";import"../PhotoS-4f30de63.js";import"../PlusS-e229b25e.js";import"../SearchM-18e1942a.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-3ac4bc04.js";import"../typography/title/index.js";import"../tslib.es6-bf9f8d77.js";import"../typography/title/component.js";import"../use-image-render-component-12d1451a.js";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/form-footer/index.js";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./components/form-outer/index.js";import"./utils/get-default-values.js";import"./components/form-loading/index.js";import"../flex-columns/component.js";import"./components/form-updating/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../../tslib.es6-
|
|
1
|
+
import{a as e}from"../../../tslib.es6-bf9f8d77.js";import i from"react";import{F as t}from"../../../index-ff52e1e7.js";import{FormLoadingCompact as n}from"../../components/form-loading/index.js";import"../../../index-e5aaea7a.js";import"../../../_commonjsHelpers-0eca42d1.js";import"../../../flex-columns/component.js";import"classnames";import"../../../skeleton/component.js";import"../../components/form-outer/index.js";function o(o){var r=o.loading,a=o.validate,m=o.customValidationFields,s=o.initialValues,l=o.enableReinitialize,c=o.save,u=o.children,d=o.t;if(r)return i.createElement(n,null);var f,p,j;return i.createElement(t,{validate:(f=a,p=m,f||(p?(j=p,function(e){return j.reduce((function(i,t){return("object"==typeof e?e:{})[t]||(i[t]=d("validationErrors:Required")),i}),{})}):void 0)),initialValues:s,enableReinitialize:l,onSubmit:c},(function(i){return u(e({},i))}))}export{o as BaseForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{F as e,a as t}from"../../../index-
|
|
1
|
+
import o from"react";import{F as e,a as t}from"../../../index-ff52e1e7.js";import{SidepanelHeader as r}from"../../../sidepanel-header/component.js";import{FormFooter as m}from"../../components/form-footer/index.js";import{FormOuter as i}from"../../components/form-outer/index.js";import{getDefaultValues as s}from"../../utils/get-default-values.js";import"../../../index-e5aaea7a.js";import"../../../_commonjsHelpers-0eca42d1.js";import"classnames";import"../../../back-button/component.js";import"../../../ActionCopyM-6bd62545.js";import"../../../CheckmarkCircleM-eaa97efe.js";import"../../../YoutubeM-447fe180.js";import"../../../CancelM-995789e5.js";import"../../../MinusM-1dfa530d.js";import"../../../ChevronBackM-35b93368.js";import"../../../ChevronBackS-104cbda8.js";import"../../../ChevronDownS-3f25432e.js";import"../../../ChevronForwardM-85dbdbb5.js";import"../../../ChevronForwardS-c349a0d5.js";import"../../../ClockCircleM-15f6a0b3.js";import"../../../CloseM-e136970c.js";import"../../../CloseS-9e8f6473.js";import"../../../ControllerS-ac9ae58d.js";import"../../../EditS-b08c9a76.js";import"../../../TrashM-49764f64.js";import"../../../MoverS-e424fe97.js";import"../../../NextS-c12e2647.js";import"../../../PhotoS-4f30de63.js";import"../../../PlusS-e229b25e.js";import"../../../SearchM-18e1942a.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-3ac4bc04.js";import"../../../typography/title/index.js";import"../../../tslib.es6-bf9f8d77.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-12d1451a.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";var p=function(p){var n=p.initialValues,a=p.defaultValues,c=p.children,l=p.submitCallback,j=p.close,d=p.t,u=s(n,a);return o.createElement(e,{initialValues:u,onSubmit:function(o){l(o),j()}},(function(e){return o.createElement(i,null,o.createElement(r,{t:d,title:d("filters"),border:!1}),o.createElement(t,null,c(e)),o.createElement(m,{t:d,submit:e.handleSubmit,close:j}))}))};export{p as FiltersForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as e}from"../../../tslib.es6-
|
|
1
|
+
import{_ as o,a as e}from"../../../tslib.es6-bf9f8d77.js";import t,{useContext as r,useState as i,useCallback as m,useEffect as s}from"react";import"../../../back-button/component.js";import"../../../ActionCopyM-6bd62545.js";import"../../../CheckmarkCircleM-eaa97efe.js";import"../../../YoutubeM-447fe180.js";import"../../../CancelM-995789e5.js";import"../../../MinusM-1dfa530d.js";import"../../../ChevronBackM-35b93368.js";import"../../../ChevronBackS-104cbda8.js";import"../../../ChevronDownS-3f25432e.js";import"../../../ChevronForwardM-85dbdbb5.js";import"../../../ChevronForwardS-c349a0d5.js";import"../../../ClockCircleM-15f6a0b3.js";import{C as n}from"../../../CloseM-e136970c.js";import"../../../CloseS-9e8f6473.js";import"../../../ControllerS-ac9ae58d.js";import"../../../EditS-b08c9a76.js";import{T as a}from"../../../TrashM-49764f64.js";import"../../../MoverS-e424fe97.js";import"../../../NextS-c12e2647.js";import"../../../PhotoS-4f30de63.js";import"../../../PlusS-e229b25e.js";import"../../../SearchM-18e1942a.js";import{FlexColumns as d}from"../../../flex-columns/component.js";import{IconButton as l}from"../../../icon-button/component.js";import{ModalContext as p}from"../../../modal/context.js";import{SidepanelHeader as c}from"../../../sidepanel-header/component.js";import{ToastPlate as u}from"../../../toast-plate/component.js";import{FormFooter as j}from"../../components/form-footer/index.js";import{FormOuter as f}from"../../components/form-outer/index.js";import{FormUpdating as b}from"../../components/form-updating/index.js";import{a as h}from"../../../index-ff52e1e7.js";import"../../../image/component.js";import"classnames";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-3ac4bc04.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-12d1451a.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../index-e5aaea7a.js";import"../../../_commonjsHelpers-0eca42d1.js";var v={header_addons:"index-module_header_addons__Kx-q1",disabled_form_inner:"index-module_disabled_form_inner__9HqiU"};function g(g){var C=g.recordId,x=g.title,y=g.subtitle,_=g.headerBottomAddons,E=g.initialValues,M=g.submitButtonText,k=g.customFooter,S=g.loading,B=g.updating,T=g.removing;g.customValidationFields,g.validate,g.save;var A=g.remove,F=g.close,V=g.back,w=g.t,I=g.children,N=g.headerAddon;g.error;var P=g.softError,q=o(g,["recordId","title","subtitle","headerBottomAddons","initialValues","submitButtonText","customFooter","loading","updating","removing","customValidationFields","validate","save","remove","close","back","t","children","headerAddon","error","softError"]),z=r(p),D=z.setModalDirty,H=z.currentModalId,K=i(H)[0],U=q.submitCount,Y=q.handleSubmit,G=q.isValid,J=o(q,["submitCount","handleSubmit","isValid"]),L=!!C&&!!A,O=m((function(){D(K,!1),Y()}),[J.dirty,K]),Q=m((function(){D(K,!1),confirm("Are you shure?")&&(null==A||A())}),[J.dirty,K]);s((function(){S||D(K,J.dirty)}),[J.dirty,S,K]);var R=L||N?t.createElement("div",{className:v.header_addons},N,L&&t.createElement(l,{dataTestId:"removeTariffBtn",size:"m",disabled:B,loading:T,onClick:Q,icon:a}),!!F&&t.createElement(l,{dataTestId:"removeTariffBtn",size:"m",disabled:B,loading:T,onClick:Q,icon:n})):null;return t.createElement(f,null,(B||T)&&t.createElement(b,null),t.createElement(c,{rightAddons:R,title:x,subtitle:y,back:V,t:w,border:!1,bottomAddons:t.createElement(d,{columns:1,gr:8},_,!!P&&t.createElement(u,{view:"negative"},P),!G&&!!U&&t.createElement(u,{view:"negative"},"Please correct errors before submitting form."))}),t.createElement(h,null,(B||T)&&t.createElement("div",{className:v.disabled_form_inner}),I(e({submitCount:U,isValid:G,handleSubmit:O,initialValues:E},J))),t.createElement(j,{t:w,disabled:T,customFooter:k,submit:O,submitButtonText:M,close:F}))}export{g as Form};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../../tslib.es6-
|
|
1
|
+
import{a as o}from"../../../tslib.es6-bf9f8d77.js";import t from"react";import{F as e}from"../../../index-ff52e1e7.js";import{FormLoading as r}from"../../components/form-loading/index.js";import{Form as m}from"./form.js";import"../../../index-e5aaea7a.js";import"../../../_commonjsHelpers-0eca42d1.js";import"../../../flex-columns/component.js";import"classnames";import"../../../skeleton/component.js";import"../../components/form-outer/index.js";import"../../../back-button/component.js";import"../../../ActionCopyM-6bd62545.js";import"../../../CheckmarkCircleM-eaa97efe.js";import"../../../YoutubeM-447fe180.js";import"../../../CancelM-995789e5.js";import"../../../MinusM-1dfa530d.js";import"../../../ChevronBackM-35b93368.js";import"../../../ChevronBackS-104cbda8.js";import"../../../ChevronDownS-3f25432e.js";import"../../../ChevronForwardM-85dbdbb5.js";import"../../../ChevronForwardS-c349a0d5.js";import"../../../ClockCircleM-15f6a0b3.js";import"../../../CloseM-e136970c.js";import"../../../CloseS-9e8f6473.js";import"../../../ControllerS-ac9ae58d.js";import"../../../EditS-b08c9a76.js";import"../../../TrashM-49764f64.js";import"../../../MoverS-e424fe97.js";import"../../../NextS-c12e2647.js";import"../../../PhotoS-4f30de63.js";import"../../../PlusS-e229b25e.js";import"../../../SearchM-18e1942a.js";import"../../../image/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-3ac4bc04.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-12d1451a.js";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../icon-button/component.js";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../modal/context.js";import"../../../portal/component.js";import"react-dom";import"../../../portal/utils.js";import"../../../modal/components/modals/index.js";import"../../../modal/components/modals/modal.js";import"../../../modal/hooks/use-modal.js";import"uuid";import"../../../modal/utils/delete-property-by-id.js";import"../../../sidepanel-header/component.js";import"../../../toast-plate/component.js";import"../../components/form-footer/index.js";import"../../components/form-updating/index.js";function i(i){var p=i.loading,n=i.error,s=i.validate,a=i.customValidationFields,c=i.initialValues,j=i.save;if(n)return t.createElement("div",null,"Error ");if(p)return t.createElement(r,null);var l,d,u;return t.createElement(e,{validate:(l=s,d=a,l||(d?(u=d,function(o){return u.reduce((function(t,e){return("object"==typeof o?o:{})[e]||(t[e]=i.t("validationErrors:Required")),t}),{})}):void 0)),initialValues:c,onSubmit:j},(function(e){return t.createElement(m,o({},e,i))}))}export{i as RestForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as r}from"../../tslib.es6-bf9f8d77.js";function e(e,t){return Object.entries(t).reduce((function(t,n){var f,i=n[0],o=n[1];return r(((f={})[i]=e[i]||o,f),t)}),{})}export{e as getDefaultValues};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as d}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as d}from"../tslib.es6-bf9f8d77.js";import a from"react";import l from"classnames";var s={component:"index-module_component__88xUs",inner:"index-module_inner__5E-18",inputWrapper:"index-module_inputWrapper__EYDad",input:"index-module_input__28cIX",label:"index-module_label__38axD",labelInner:"index-module_labelInner__EJhNP",addons:"index-module_addons__lhT1R",leftAddons:"index-module_leftAddons__LEkge",rightAddons:"index-module_rightAddons__zsPCo",sub:"index-module_sub__i9z6r",hint:"index-module_hint__RpKM-",block:"index-module_block__flzeK",s:"index-module_s__prKUx",hasLabel:"index-module_hasLabel__ZoVEF",m:"index-module_m__WsWRp",l:"index-module_l__GgDaN",hasLeftAddons:"index-module_hasLeftAddons__SCMwi",hasRightAddons:"index-module_hasRightAddons__-5ME3",disabled:"index-module_disabled__xb0nE",focused:"index-module_focused__gP4eM",hasError:"index-module_hasError__YIyAz",filled:"index-module_filled__eiB1o",error:"index-module_error__kbem3"},n=a.forwardRef((function(n,o){var i,r,t=n.block,_=void 0!==t&&t,m=n.size,u=void 0===m?"s":m,c=n.className,b=n.required,f=n.fieldClassName,h=n.labelClassName,x=n.addonsClassName,p=n.disabled,E=n.focused,N=n.filled,A=n.error,g=n.hint,v=n.label,C=n.leftAddons,k=n.rightAddons,I=n.bottomAddons,L=n.children,R=n.dataTestId,z=e(n,["block","size","className","required","fieldClassName","labelClassName","addonsClassName","disabled","focused","filled","error","hint","label","leftAddons","rightAddons","bottomAddons","children","dataTestId"]),W="string"==typeof A?A:"";return a.createElement("div",{"data-test-id":R,className:l(s.component,c,s[u],(i={},i[s.block]=_,i[s.hasLeftAddons]=C,i[s.hasRightAddons]=k||A,i))},a.createElement("div",d({},z,{className:l(f,s.inner,(r={},r[s.focused]=E,r[s.disabled]=p,r[s.filled]=N,r[s.hasError]=A,r[s.hasLabel]=v,r)),ref:o}),C&&a.createElement("div",{className:l(s.addons,s.leftAddons,x)},C),a.createElement("div",{className:s.inputWrapper},v&&a.createElement("div",{className:l(s.label,h)},a.createElement("span",{className:s.labelInner},b?v+" *":v)),a.createElement("div",{className:s.input},L)),k&&a.createElement("div",{className:l(s.addons,s.rightAddons,x)},k)),I,W&&a.createElement("span",{"data-attribute":"form-error",className:l(s.sub,s.error)},W),g&&!W&&a.createElement("span",{className:l(s.sub,s.hint)},g))}));export{n as FormControl};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FormControl}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{FormControl}from"./component.js";import"../tslib.es6-bf9f8d77.js";import"react";import"classnames";
|