@oneb/ui-vue 0.3.31 → 0.3.32

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.
@@ -0,0 +1,20 @@
1
+ import { openBlock as e, createElementBlock as r, createElementVNode as o } from "vue";
2
+ function a(t, n) {
3
+ return e(), r("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ fill: "none",
6
+ viewBox: "0 0 24 24",
7
+ "stroke-width": "1.8",
8
+ stroke: "currentColor",
9
+ "aria-hidden": "true"
10
+ }, [
11
+ o("path", {
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
15
+ })
16
+ ]);
17
+ }
18
+ export {
19
+ a as r
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");function r(t,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})])}exports.render=r;
@@ -1,5 +1,5 @@
1
- import { openBlock as e, createElementBlock as r, createElementVNode as n } from "vue";
2
- function c(o, t) {
1
+ import { openBlock as e, createElementBlock as r, createElementVNode as o } from "vue";
2
+ function c(n, t) {
3
3
  return e(), r("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  fill: "none",
@@ -8,14 +8,14 @@ function c(o, t) {
8
8
  stroke: "currentColor",
9
9
  "aria-hidden": "true"
10
10
  }, [
11
- n("path", {
11
+ o("path", {
12
12
  "stroke-linecap": "round",
13
13
  "stroke-linejoin": "round",
14
14
  d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
15
15
  })
16
16
  ]);
17
17
  }
18
- function s(o, t) {
18
+ function s(n, t) {
19
19
  return e(), r("svg", {
20
20
  xmlns: "http://www.w3.org/2000/svg",
21
21
  fill: "none",
@@ -24,14 +24,14 @@ function s(o, t) {
24
24
  stroke: "currentColor",
25
25
  "aria-hidden": "true"
26
26
  }, [
27
- n("path", {
27
+ o("path", {
28
28
  "stroke-linecap": "round",
29
29
  "stroke-linejoin": "round",
30
30
  d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
31
31
  })
32
32
  ]);
33
33
  }
34
- function a(o, t) {
34
+ function a(n, t) {
35
35
  return e(), r("svg", {
36
36
  xmlns: "http://www.w3.org/2000/svg",
37
37
  fill: "none",
@@ -40,23 +40,7 @@ function a(o, t) {
40
40
  stroke: "currentColor",
41
41
  "aria-hidden": "true"
42
42
  }, [
43
- n("path", {
44
- "stroke-linecap": "round",
45
- "stroke-linejoin": "round",
46
- d: "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
47
- })
48
- ]);
49
- }
50
- function l(o, t) {
51
- return e(), r("svg", {
52
- xmlns: "http://www.w3.org/2000/svg",
53
- fill: "none",
54
- viewBox: "0 0 24 24",
55
- "stroke-width": "1.8",
56
- stroke: "currentColor",
57
- "aria-hidden": "true"
58
- }, [
59
- n("path", {
43
+ o("path", {
60
44
  "stroke-linecap": "round",
61
45
  "stroke-linejoin": "round",
62
46
  d: "M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"
@@ -65,7 +49,6 @@ function l(o, t) {
65
49
  }
66
50
  export {
67
51
  s as a,
68
- l as b,
69
- a as c,
52
+ a as b,
70
53
  c as r
71
54
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue");function t(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function o(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function c(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})])}function l(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})])}exports.render=t;exports.render$1=o;exports.render$2=l;exports.render$3=c;
1
+ "use strict";const e=require("vue");function t(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function o(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})])}function c(r,n){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})])}exports.render=t;exports.render$1=o;exports.render$2=c;
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./i18n/index.cjs"),c=require("./button/index.cjs"),q=require("./buttonGroup/index.cjs"),t=require("./card/index.cjs"),p=require("./checkbox/index.cjs"),b=require("./collapse/index.cjs"),M=require("./OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs"),P=require("./common/index.cjs");require("./OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs");const D=require("./SpinnerIcon-ccb6f3fc.cjs"),r=require("./OneHelpMenu-c6e88d8f.cjs"),i=require("./dropdown/index.cjs"),d=require("./entityPicker/index.cjs"),_=require("./errorsPage/index.cjs"),n=require("./form/index.cjs"),m=require("./indicators/index.cjs"),I=require("./infobox/index.cjs"),y=require("./label/index.cjs"),a=require("./layout/index.cjs"),l=require("./useModal-0c73777f.cjs"),O=require("./modal/index.cjs"),k=require("./radio/index.cjs"),A=require("./skeleton/index.cjs"),w=require("./switch/index.cjs"),u=require("./toast/index.cjs"),e=require("./periodPicker/index.cjs"),s=require("./dataTable/index.cjs"),E=require("dayjs");require("vue");require("./_plugin-vue_export-helper-f246444f.cjs");require("vue-markdown-render");require("./SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs");require("@floating-ui/dom");require("@floating-ui/vue");require("./XMarkIcon-f94baa4c.cjs");require("./ChevronDownIcon-6889ac87.cjs");require("./ChevronRightIcon-7a2f0c20.cjs");require("./NoSymbolIcon-5d326416.cjs");require("v-calendar");require("./CheckIcon-09b84cf5.cjs");require("dayjs/plugin/advancedFormat");require("dayjs/plugin/isoWeek");require("dayjs/plugin/quarterOfYear");require("dayjs/plugin/utc");require("dayjs/plugin/customParseFormat");exports.OnebI18n=o.OnebI18n;exports.OnebI18nKey=o.OnebI18nKey;exports.defaultTranslations=o.defaultTranslations;exports.useOnebI18n=o.useOnebI18n;exports.OneButton=c.OneButton;exports.OneButtonGroup=q.OneButtonGroup;exports.OneCard=t.OneCard;exports.OneCardBody=t.OneCardBody;exports.OneCardFooter=t.OneCardFooter;exports.OneCardHeader=t.OneCardHeader;exports.OneCheckbox=p.OneCheckbox;exports.OneCollapse=b.OneCollapse;exports.OneAvatar=M._sfc_main;exports.OneMarkdown=P.OneMarkdown;exports.OneSpinnerIcon=D.SpinnerIcon;exports.OneBrowserMenu=r.OneBrowserMenu;exports.OneDropdown=r._sfc_main;exports.OneDropdownItem=r._sfc_main$1;exports.OneHelpMenu=r.OneHelpMenu;exports.OneUserMenu=r._sfc_main$2;exports.OneBrowserMenuGrid=i.OneBrowserMenuGrid;exports.OneDropdownAuto=i.OneDropdownAuto;exports.OneDropdownDivider=i.OneDropdownDivider;exports.OneDropdownSelect=i.OneDropdownSelect;exports.OneEntityPicker=d.OneEntityPicker;exports.defaultEntityPickerTranslations=d.defaultEntityPickerTranslations;exports.OneErrorPage=_.OneErrorPage;exports.OneForm=n.OneForm;exports.OneFormFeedback=n.OneFormFeedback;exports.OneFormField=n.OneFormField;exports.OneFormInput=n.OneFormInput;exports.OneFormLabel=n.OneFormLabel;exports.OneIndicators=m.OneIndicators;exports.OneInfobox=I.OneInfobox;exports.OneLabel=y.OneLabel;exports.OneIslandLayout=a.OneIslandLayout;exports.OneMainLayout=a.OneMainLayout;exports.OneSidebar=a.OneSidebar;exports.OneModal=l.OneModal;exports.useModal=l.useModal;exports.OneModalBody=O.OneModalBody;exports.OneModalFooter=O.OneModalFooter;exports.OneModalHeader=O.OneModalHeader;exports.OneRadio=k.OneRadio;exports.OneSkeleton=A.OneSkeleton;exports.OneSwitch=w.OneSwitch;exports.OneToast=u.OneToast;exports.toastProps=u.toastProps;exports.useToast=u.useToast;exports.DATE_KIND=e.DATE_KIND;exports.MANUAL_DATE_KEY=e.MANUAL_DATE_KEY;exports.MANUAL_RANGE_KEY=e.MANUAL_RANGE_KEY;exports.OnePeriodPicker=e.OnePeriodPicker;exports.OnePeriodPickerFastModal=e.OnePeriodPickerFastModal;exports.PERIOD_KIND=e.PERIOD_KIND;exports.RANGE_KIND=e.RANGE_KIND;exports.buildPreset=e.buildPreset;exports.buildRollingOptions=e.buildRollingOptions;exports.createShortcutPresets=e.createShortcutPresets;exports.determineKind=e.determineKind;exports.formatDateShort=e.formatDateShort;exports.formatPeriod=e.formatPeriod;exports.getOptionGranularity=e.getOptionGranularity;exports.isOptionAllowed=e.isOptionAllowed;exports.parseManualDate=e.parseManualDate;exports.periodPickerSizeConfig=e.periodPickerSizeConfig;exports.toUnixOrNull=e.toUnixOrNull;exports.OneColumn=s.OneColumn;exports.OneDataTable=s.OneDataTable;exports.OneDataTablePaginator=s.OneDataTablePaginator;exports.dayjs=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./i18n/index.cjs"),c=require("./button/index.cjs"),q=require("./buttonGroup/index.cjs"),t=require("./card/index.cjs"),p=require("./checkbox/index.cjs"),b=require("./collapse/index.cjs"),M=require("./OneAvatar.vue_vue_type_script_setup_true_lang-2d9f44f1.cjs"),P=require("./common/index.cjs");require("./OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs");const D=require("./SpinnerIcon-ccb6f3fc.cjs"),r=require("./OneHelpMenu-c6e88d8f.cjs"),i=require("./dropdown/index.cjs"),d=require("./entityPicker/index.cjs"),_=require("./errorsPage/index.cjs"),n=require("./form/index.cjs"),m=require("./indicators/index.cjs"),I=require("./infobox/index.cjs"),y=require("./label/index.cjs"),a=require("./layout/index.cjs"),l=require("./useModal-0c73777f.cjs"),O=require("./modal/index.cjs"),k=require("./radio/index.cjs"),A=require("./skeleton/index.cjs"),w=require("./switch/index.cjs"),u=require("./toast/index.cjs"),e=require("./periodPicker/index.cjs"),s=require("./dataTable/index.cjs"),E=require("dayjs");require("vue");require("./_plugin-vue_export-helper-f246444f.cjs");require("vue-markdown-render");require("./SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs");require("@floating-ui/dom");require("@floating-ui/vue");require("./XMarkIcon-f94baa4c.cjs");require("./ChevronDownIcon-6889ac87.cjs");require("./ChevronRightIcon-7a2f0c20.cjs");require("./NoSymbolIcon-e84375bb.cjs");require("./InformationCircleIcon-d6b67d5d.cjs");require("v-calendar");require("./CheckIcon-09b84cf5.cjs");require("dayjs/plugin/advancedFormat");require("dayjs/plugin/isoWeek");require("dayjs/plugin/quarterOfYear");require("dayjs/plugin/utc");require("dayjs/plugin/customParseFormat");exports.OnebI18n=o.OnebI18n;exports.OnebI18nKey=o.OnebI18nKey;exports.defaultTranslations=o.defaultTranslations;exports.useOnebI18n=o.useOnebI18n;exports.OneButton=c.OneButton;exports.OneButtonGroup=q.OneButtonGroup;exports.OneCard=t.OneCard;exports.OneCardBody=t.OneCardBody;exports.OneCardFooter=t.OneCardFooter;exports.OneCardHeader=t.OneCardHeader;exports.OneCheckbox=p.OneCheckbox;exports.OneCollapse=b.OneCollapse;exports.OneAvatar=M._sfc_main;exports.OneMarkdown=P.OneMarkdown;exports.OneSpinnerIcon=D.SpinnerIcon;exports.OneBrowserMenu=r.OneBrowserMenu;exports.OneDropdown=r._sfc_main;exports.OneDropdownItem=r._sfc_main$1;exports.OneHelpMenu=r.OneHelpMenu;exports.OneUserMenu=r._sfc_main$2;exports.OneBrowserMenuGrid=i.OneBrowserMenuGrid;exports.OneDropdownAuto=i.OneDropdownAuto;exports.OneDropdownDivider=i.OneDropdownDivider;exports.OneDropdownSelect=i.OneDropdownSelect;exports.OneEntityPicker=d.OneEntityPicker;exports.defaultEntityPickerTranslations=d.defaultEntityPickerTranslations;exports.OneErrorPage=_.OneErrorPage;exports.OneForm=n.OneForm;exports.OneFormFeedback=n.OneFormFeedback;exports.OneFormField=n.OneFormField;exports.OneFormInput=n.OneFormInput;exports.OneFormLabel=n.OneFormLabel;exports.OneIndicators=m.OneIndicators;exports.OneInfobox=I.OneInfobox;exports.OneLabel=y.OneLabel;exports.OneIslandLayout=a.OneIslandLayout;exports.OneMainLayout=a.OneMainLayout;exports.OneSidebar=a.OneSidebar;exports.OneModal=l.OneModal;exports.useModal=l.useModal;exports.OneModalBody=O.OneModalBody;exports.OneModalFooter=O.OneModalFooter;exports.OneModalHeader=O.OneModalHeader;exports.OneRadio=k.OneRadio;exports.OneSkeleton=A.OneSkeleton;exports.OneSwitch=w.OneSwitch;exports.OneToast=u.OneToast;exports.toastProps=u.toastProps;exports.useToast=u.useToast;exports.DATE_KIND=e.DATE_KIND;exports.MANUAL_DATE_KEY=e.MANUAL_DATE_KEY;exports.MANUAL_RANGE_KEY=e.MANUAL_RANGE_KEY;exports.OnePeriodPicker=e.OnePeriodPicker;exports.OnePeriodPickerFastModal=e.OnePeriodPickerFastModal;exports.PERIOD_KIND=e.PERIOD_KIND;exports.RANGE_KIND=e.RANGE_KIND;exports.buildPreset=e.buildPreset;exports.buildRollingOptions=e.buildRollingOptions;exports.createShortcutPresets=e.createShortcutPresets;exports.determineKind=e.determineKind;exports.formatDateShort=e.formatDateShort;exports.formatPeriod=e.formatPeriod;exports.getOptionGranularity=e.getOptionGranularity;exports.isOptionAllowed=e.isOptionAllowed;exports.parseManualDate=e.parseManualDate;exports.periodPickerSizeConfig=e.periodPickerSizeConfig;exports.toUnixOrNull=e.toUnixOrNull;exports.OneColumn=s.OneColumn;exports.OneDataTable=s.OneDataTable;exports.OneDataTablePaginator=s.OneDataTablePaginator;exports.dayjs=E;
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import { OnebI18n as P, OnebI18nKey as I, defaultTranslations as A, useOnebI18n as w } from "./i18n/index.js";
2
- import { OneButton as F } from "./button/index.js";
3
- import { OneButtonGroup as y } from "./buttonGroup/index.js";
4
- import { OneCard as _, OneCardBody as C, OneCardFooter as N, OneCardHeader as T } from "./card/index.js";
5
- import { OneCheckbox as B } from "./checkbox/index.js";
6
- import { OneCollapse as g } from "./collapse/index.js";
7
- import { _ as R } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
8
- import { OneMarkdown as U } from "./common/index.js";
1
+ import { OnebI18n as I, OnebI18nKey as A, defaultTranslations as w, useOnebI18n as E } from "./i18n/index.js";
2
+ import { OneButton as k } from "./button/index.js";
3
+ import { OneButtonGroup as S } from "./buttonGroup/index.js";
4
+ import { OneCard as C, OneCardBody as N, OneCardFooter as T, OneCardHeader as K } from "./card/index.js";
5
+ import { OneCheckbox as L } from "./checkbox/index.js";
6
+ import { OneCollapse as G } from "./collapse/index.js";
7
+ import { _ as h } from "./OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
8
+ import { OneMarkdown as H } from "./common/index.js";
9
9
  import "./OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
10
- import { S as v } from "./SpinnerIcon-74648c98.js";
11
- import { O as j, _ as z, a as q, c as J, b as Q } from "./OneHelpMenu-73817f8a.js";
12
- import { OneBrowserMenuGrid as W, OneDropdownAuto as X, OneDropdownDivider as Z, OneDropdownSelect as $ } from "./dropdown/index.js";
13
- import { OneEntityPicker as eo, defaultEntityPickerTranslations as ro } from "./entityPicker/index.js";
14
- import { OneErrorPage as no } from "./errorsPage/index.js";
15
- import { OneForm as po, OneFormFeedback as Oo, OneFormField as io, OneFormInput as mo, OneFormLabel as so } from "./form/index.js";
16
- import { OneIndicators as lo } from "./indicators/index.js";
17
- import { OneInfobox as uo } from "./infobox/index.js";
18
- import { OneLabel as Mo } from "./label/index.js";
19
- import { OneIslandLayout as co, OneMainLayout as Po, OneSidebar as Io } from "./layout/index.js";
20
- import { O as wo, u as Eo } from "./useModal-7fe9444b.js";
21
- import { OneModalBody as ko, OneModalFooter as yo, OneModalHeader as So } from "./modal/index.js";
22
- import { OneRadio as Co } from "./radio/index.js";
23
- import { OneSkeleton as To } from "./skeleton/index.js";
24
- import { OneSwitch as Bo } from "./switch/index.js";
25
- import { OneToast as go, toastProps as Go, useToast as Ro } from "./toast/index.js";
26
- import { DATE_KIND as Uo, MANUAL_DATE_KEY as Ho, MANUAL_RANGE_KEY as vo, OnePeriodPicker as Yo, OnePeriodPickerFastModal as jo, PERIOD_KIND as zo, RANGE_KIND as qo, buildPreset as Jo, buildRollingOptions as Qo, createShortcutPresets as Vo, determineKind as Wo, formatDateShort as Xo, formatPeriod as Zo, getOptionGranularity as $o, isOptionAllowed as oe, parseManualDate as ee, periodPickerSizeConfig as re, toUnixOrNull as te } from "./periodPicker/index.js";
27
- import { OneColumn as ae, OneDataTable as pe, OneDataTablePaginator as Oe } from "./dataTable/index.js";
28
- import { default as me } from "dayjs";
10
+ import { S as Y } from "./SpinnerIcon-74648c98.js";
11
+ import { O as z, _ as q, a as J, c as Q, b as V } from "./OneHelpMenu-73817f8a.js";
12
+ import { OneBrowserMenuGrid as X, OneDropdownAuto as Z, OneDropdownDivider as $, OneDropdownSelect as oo } from "./dropdown/index.js";
13
+ import { OneEntityPicker as ro, defaultEntityPickerTranslations as to } from "./entityPicker/index.js";
14
+ import { OneErrorPage as ao } from "./errorsPage/index.js";
15
+ import { OneForm as io, OneFormFeedback as mo, OneFormField as Oo, OneFormInput as so, OneFormLabel as fo } from "./form/index.js";
16
+ import { OneIndicators as xo } from "./indicators/index.js";
17
+ import { OneInfobox as Do } from "./infobox/index.js";
18
+ import { OneLabel as bo } from "./label/index.js";
19
+ import { OneIslandLayout as Po, OneMainLayout as Io, OneSidebar as Ao } from "./layout/index.js";
20
+ import { O as Eo, u as Fo } from "./useModal-7fe9444b.js";
21
+ import { OneModalBody as yo, OneModalFooter as So, OneModalHeader as _o } from "./modal/index.js";
22
+ import { OneRadio as No } from "./radio/index.js";
23
+ import { OneSkeleton as Ko } from "./skeleton/index.js";
24
+ import { OneSwitch as Lo } from "./switch/index.js";
25
+ import { OneToast as Go, toastProps as Ro, useToast as ho } from "./toast/index.js";
26
+ import { DATE_KIND as Ho, MANUAL_DATE_KEY as vo, MANUAL_RANGE_KEY as Yo, OnePeriodPicker as jo, OnePeriodPickerFastModal as zo, PERIOD_KIND as qo, RANGE_KIND as Jo, buildPreset as Qo, buildRollingOptions as Vo, createShortcutPresets as Wo, determineKind as Xo, formatDateShort as Zo, formatPeriod as $o, getOptionGranularity as oe, isOptionAllowed as ee, parseManualDate as re, periodPickerSizeConfig as te, toUnixOrNull as ne } from "./periodPicker/index.js";
27
+ import { OneColumn as pe, OneDataTable as ie, OneDataTablePaginator as me } from "./dataTable/index.js";
28
+ import { default as de } from "dayjs";
29
29
  import "vue";
30
30
  import "./_plugin-vue_export-helper-dad06003.js";
31
31
  import "vue-markdown-render";
@@ -35,7 +35,8 @@ import "@floating-ui/vue";
35
35
  import "./XMarkIcon-51ef0691.js";
36
36
  import "./ChevronDownIcon-6805ce6c.js";
37
37
  import "./ChevronRightIcon-4549a26b.js";
38
- import "./NoSymbolIcon-e58a9aee.js";
38
+ import "./NoSymbolIcon-b3470a26.js";
39
+ import "./InformationCircleIcon-2f6097a0.js";
39
40
  import "v-calendar";
40
41
  import "./CheckIcon-f1c94824.js";
41
42
  import "dayjs/plugin/advancedFormat";
@@ -44,75 +45,75 @@ import "dayjs/plugin/quarterOfYear";
44
45
  import "dayjs/plugin/utc";
45
46
  import "dayjs/plugin/customParseFormat";
46
47
  export {
47
- Uo as DATE_KIND,
48
- Ho as MANUAL_DATE_KEY,
49
- vo as MANUAL_RANGE_KEY,
50
- R as OneAvatar,
51
- j as OneBrowserMenu,
52
- W as OneBrowserMenuGrid,
53
- F as OneButton,
54
- y as OneButtonGroup,
55
- _ as OneCard,
56
- C as OneCardBody,
57
- N as OneCardFooter,
58
- T as OneCardHeader,
59
- B as OneCheckbox,
60
- g as OneCollapse,
61
- ae as OneColumn,
62
- pe as OneDataTable,
63
- Oe as OneDataTablePaginator,
64
- z as OneDropdown,
65
- X as OneDropdownAuto,
66
- Z as OneDropdownDivider,
67
- q as OneDropdownItem,
68
- $ as OneDropdownSelect,
69
- eo as OneEntityPicker,
70
- no as OneErrorPage,
71
- po as OneForm,
72
- Oo as OneFormFeedback,
73
- io as OneFormField,
74
- mo as OneFormInput,
75
- so as OneFormLabel,
76
- J as OneHelpMenu,
77
- lo as OneIndicators,
78
- uo as OneInfobox,
79
- co as OneIslandLayout,
80
- Mo as OneLabel,
81
- Po as OneMainLayout,
82
- U as OneMarkdown,
83
- wo as OneModal,
84
- ko as OneModalBody,
85
- yo as OneModalFooter,
86
- So as OneModalHeader,
87
- Yo as OnePeriodPicker,
88
- jo as OnePeriodPickerFastModal,
89
- Co as OneRadio,
90
- Io as OneSidebar,
91
- To as OneSkeleton,
92
- v as OneSpinnerIcon,
93
- Bo as OneSwitch,
94
- go as OneToast,
95
- Q as OneUserMenu,
96
- P as OnebI18n,
97
- I as OnebI18nKey,
98
- zo as PERIOD_KIND,
99
- qo as RANGE_KIND,
100
- Jo as buildPreset,
101
- Qo as buildRollingOptions,
102
- Vo as createShortcutPresets,
103
- me as dayjs,
104
- ro as defaultEntityPickerTranslations,
105
- A as defaultTranslations,
106
- Wo as determineKind,
107
- Xo as formatDateShort,
108
- Zo as formatPeriod,
109
- $o as getOptionGranularity,
110
- oe as isOptionAllowed,
111
- ee as parseManualDate,
112
- re as periodPickerSizeConfig,
113
- te as toUnixOrNull,
114
- Go as toastProps,
115
- Eo as useModal,
116
- w as useOnebI18n,
117
- Ro as useToast
48
+ Ho as DATE_KIND,
49
+ vo as MANUAL_DATE_KEY,
50
+ Yo as MANUAL_RANGE_KEY,
51
+ h as OneAvatar,
52
+ z as OneBrowserMenu,
53
+ X as OneBrowserMenuGrid,
54
+ k as OneButton,
55
+ S as OneButtonGroup,
56
+ C as OneCard,
57
+ N as OneCardBody,
58
+ T as OneCardFooter,
59
+ K as OneCardHeader,
60
+ L as OneCheckbox,
61
+ G as OneCollapse,
62
+ pe as OneColumn,
63
+ ie as OneDataTable,
64
+ me as OneDataTablePaginator,
65
+ q as OneDropdown,
66
+ Z as OneDropdownAuto,
67
+ $ as OneDropdownDivider,
68
+ J as OneDropdownItem,
69
+ oo as OneDropdownSelect,
70
+ ro as OneEntityPicker,
71
+ ao as OneErrorPage,
72
+ io as OneForm,
73
+ mo as OneFormFeedback,
74
+ Oo as OneFormField,
75
+ so as OneFormInput,
76
+ fo as OneFormLabel,
77
+ Q as OneHelpMenu,
78
+ xo as OneIndicators,
79
+ Do as OneInfobox,
80
+ Po as OneIslandLayout,
81
+ bo as OneLabel,
82
+ Io as OneMainLayout,
83
+ H as OneMarkdown,
84
+ Eo as OneModal,
85
+ yo as OneModalBody,
86
+ So as OneModalFooter,
87
+ _o as OneModalHeader,
88
+ jo as OnePeriodPicker,
89
+ zo as OnePeriodPickerFastModal,
90
+ No as OneRadio,
91
+ Ao as OneSidebar,
92
+ Ko as OneSkeleton,
93
+ Y as OneSpinnerIcon,
94
+ Lo as OneSwitch,
95
+ Go as OneToast,
96
+ V as OneUserMenu,
97
+ I as OnebI18n,
98
+ A as OnebI18nKey,
99
+ qo as PERIOD_KIND,
100
+ Jo as RANGE_KIND,
101
+ Qo as buildPreset,
102
+ Vo as buildRollingOptions,
103
+ Wo as createShortcutPresets,
104
+ de as dayjs,
105
+ to as defaultEntityPickerTranslations,
106
+ w as defaultTranslations,
107
+ Xo as determineKind,
108
+ Zo as formatDateShort,
109
+ $o as formatPeriod,
110
+ oe as getOptionGranularity,
111
+ ee as isOptionAllowed,
112
+ re as parseManualDate,
113
+ te as periodPickerSizeConfig,
114
+ ne as toUnixOrNull,
115
+ Ro as toastProps,
116
+ Fo as useModal,
117
+ E as useOnebI18n,
118
+ ho as useToast
118
119
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("../XMarkIcon-f94baa4c.cjs"),l=require("../NoSymbolIcon-5d326416.cjs"),v={title:{type:String,required:!1},text:{type:String,required:!1},icon:{type:[Function,Object]},variant:{type:String,default:"info"},closable:{required:!1,type:Boolean,default:!0}},g={success:["bg-success-10"],warning:["bg-warning-10"],critical:["bg-danger-10"],info:["bg-primary-10"]},y=(r="info")=>{const o=[];return o.push(...g[r]??[]),o},B={key:0,class:"w-full"},h={class:"flex flex-col"},x={key:0,class:"w-full"},C={class:"flex justify-between"},N={class:"flex flex-row"},E={class:"text-xl font-medium pl-2"},V={key:0,class:"pt-3.5 px-8 font-light leading-6"},w={key:1,class:"flex justify-between"},_={key:0,class:"font-light leading-6 truncate pr-3"},S={key:2,class:"px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"},I=e.defineComponent({__name:"OneInfobox",props:v,emits:["hide"],setup(r,{emit:o}){const n=r,d=o,a=e.ref(!1),u={success:"text-success-base",warning:"text-warning-base",critical:"text-danger-base",info:"text-primary-base"},m={success:l.render,warning:l.render$1,critical:l.render$2,info:l.render$3},c=()=>{a.value=!0,d("hide")},p=e.computed(()=>y(n.variant)),f=e.computed(()=>u[n.variant]),k=e.computed(()=>n.icon??m[n.variant]);return(t,s)=>a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",{class:e.normalizeClass(["p-4 rounded",p.value])},[e.createElementVNode("div",h,[t.title?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",C,[e.createElementVNode("div",N,[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{class:"h-7 w-7"}))],2),e.createElementVNode("p",E,e.toDisplayString(t.title),1)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=b=>c())},[e.createVNode(e.unref(i.render),{class:"h-6 w-6"})])):e.createCommentVNode("",!0)]),t.text?(e.openBlock(),e.createElementBlock("p",V,e.toDisplayString(t.text),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",w,[t.text?(e.openBlock(),e.createElementBlock("p",_,e.toDisplayString(t.text),1)):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:s[1]||(s[1]=b=>c())},[e.createVNode(e.unref(i.render),{class:"h-6 w-6"})])):e.createCommentVNode("",!0)])),t.$slots.button?(e.openBlock(),e.createElementBlock("div",S,[e.renderSlot(t.$slots,"button",{hideBlock:c})])):e.createCommentVNode("",!0)])],2)]))}});exports.OneInfobox=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("../XMarkIcon-f94baa4c.cjs"),c=require("../NoSymbolIcon-e84375bb.cjs"),v=require("../InformationCircleIcon-d6b67d5d.cjs"),g={title:{type:String,required:!1},text:{type:String,required:!1},icon:{type:[Function,Object]},variant:{type:String,default:"info"},closable:{required:!1,type:Boolean,default:!0}},y={success:["bg-success-10"],warning:["bg-warning-10"],critical:["bg-danger-10"],info:["bg-primary-10"]},B=(r="info")=>{const o=[];return o.push(...y[r]??[]),o},h={key:0,class:"w-full"},x={class:"flex flex-col"},C={key:0,class:"w-full"},N={class:"flex justify-between"},E={class:"flex flex-row"},V={class:"text-xl font-medium pl-2"},w={key:0,class:"pt-3.5 px-8 font-light leading-6"},_={key:1,class:"flex justify-between"},I={key:0,class:"font-light leading-6 truncate pr-3"},S={key:2,class:"px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"},q=e.defineComponent({__name:"OneInfobox",props:g,emits:["hide"],setup(r,{emit:o}){const n=r,d=o,a=e.ref(!1),u={success:"text-success-base",warning:"text-warning-base",critical:"text-danger-base",info:"text-primary-base"},m={success:c.render,warning:c.render$1,critical:c.render$2,info:v.render},l=()=>{a.value=!0,d("hide")},p=e.computed(()=>B(n.variant)),f=e.computed(()=>u[n.variant]),k=e.computed(()=>n.icon??m[n.variant]);return(t,s)=>a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{class:e.normalizeClass(["p-4 rounded",p.value])},[e.createElementVNode("div",x,[t.title?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",N,[e.createElementVNode("div",E,[e.createElementVNode("div",{class:e.normalizeClass(f.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{class:"h-7 w-7"}))],2),e.createElementVNode("p",V,e.toDisplayString(t.title),1)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=b=>l())},[e.createVNode(e.unref(i.render),{class:"h-6 w-6"})])):e.createCommentVNode("",!0)]),t.text?(e.openBlock(),e.createElementBlock("p",w,e.toDisplayString(t.text),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",_,[t.text?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(t.text),1)):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:s[1]||(s[1]=b=>l())},[e.createVNode(e.unref(i.render),{class:"h-6 w-6"})])):e.createCommentVNode("",!0)])),t.$slots.button?(e.openBlock(),e.createElementBlock("div",S,[e.renderSlot(t.$slots,"button",{hideBlock:l})])):e.createCommentVNode("",!0)])],2)]))}});exports.OneInfobox=q;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as C, ref as $, computed as u, openBlock as t, createElementBlock as s, createElementVNode as n, normalizeClass as p, createBlock as I, resolveDynamicComponent as B, toDisplayString as d, createVNode as m, unref as b, createCommentVNode as o, renderSlot as S } from "vue";
2
2
  import { r as v } from "../XMarkIcon-51ef0691.js";
3
- import { r as L, a as j, b as q, c as N } from "../NoSymbolIcon-e58a9aee.js";
3
+ import { r as L, a as j, b as q } from "../NoSymbolIcon-b3470a26.js";
4
+ import { r as N } from "../InformationCircleIcon-2f6097a0.js";
4
5
  const O = {
5
6
  title: {
6
7
  type: String,
@@ -48,7 +49,7 @@ const O = {
48
49
  }, M = {
49
50
  key: 2,
50
51
  class: "px-8 pt-2 flex gap-x-2.5 flex-shrink-0 mt-auto"
51
- }, U = /* @__PURE__ */ C({
52
+ }, W = /* @__PURE__ */ C({
52
53
  __name: "OneInfobox",
53
54
  props: O,
54
55
  emits: ["hide"],
@@ -107,5 +108,5 @@ const O = {
107
108
  }
108
109
  });
109
110
  export {
110
- U as OneInfobox
111
+ W as OneInfobox
111
112
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("../useModal-0c73777f.cjs"),v=require("../button/index.cjs"),C=require("../InformationCircleIcon-d6b67d5d.cjs");require("../_plugin-vue_export-helper-f246444f.cjs");require("../SpinnerIcon-ccb6f3fc.cjs");require("../SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs");const y={alpha:{color:"yellow",label:"Дочасний доступ",hint:"Натисніть, щоб дізнатися більше про стадію запуску сервісу",modalTitle:"Сервіс у режимі дочасного доступу",intro:"Зараз сервіс відкритий обмеженому колу користувачів OneB. Він уже працює, але ще активно розвивається — ми додаємо нові можливості та вдосконалюємо наявні, тож інколи можливі помилки або зміни в інтерфейсі.",whatsNext:"Далі на сервіс чекає етап підготовки до релізу, а потім — повноцінний запуск. Дякуємо, що користуєтеся ним уже зараз і допомагаєте робити його кращим.",participate:"Це ваша унікальна можливість вплинути на розробку: поділіться своїми ідеями — які функції додати чи що змінити, — і ми врахуємо їх у наступних оновленнях.",support:"Якщо ви знайшли помилку або щось працює не так, як очікували — напишіть у підтримку, і ми оперативно все виправимо."},beta:{color:"blue",label:"Пре-реліз",hint:"Натисніть, щоб дізнатися більше про стадію запуску сервісу",modalTitle:"Сервіс у режимі підготовки до релізу",intro:"Сервіс уже майже готовий до повноцінного запуску. Основні можливості стабільні, ми завершуємо фінальне шліфування — інколи ще можливі незначні зміни в інтерфейсі.",whatsNext:"Найближчим часом — повноцінний реліз. Дякуємо, що з нами на цьому етапі й допомагаєте відполірувати останні деталі.",participate:"Ваші ідеї досі важливі: підкажіть, що покращити перед релізом, — і ми постараємося врахувати це.",support:"Помітили помилку чи незручність — напишіть у підтримку, ми швидко відреагуємо."}},N="Написати в підтримку",x="Зрозуміло",T={stage:{type:String,required:!0},color:{type:String},label:{type:String},hint:{type:String},modalTitle:{type:String},intro:{type:String},whatsNext:{type:String},participate:{type:String},support:{type:String},contactSupportLabel:{type:String},dismissLabel:{type:String},showContactSupport:{type:Boolean,default:!0},supportUrl:{type:String,default:"https://t.me/onebapp_bot"}},w=["title","aria-label"],L={class:"p-4 space-y-3 text-sm text-gray-700"},D={key:0},E={key:1},V={key:2},O={key:3},q={class:"flex justify-end space-x-3 pt-2"},M=e.defineComponent({__name:"OneStageBadge",props:T,emits:["contact-support","dismiss","open"],setup(S,{emit:g}){const t=S,n=g,l=m.useModal(!1),o=e.computed(()=>y[t.stage]),b=e.computed(()=>t.color??o.value.color),_=e.computed(()=>t.label??o.value.label),r=e.computed(()=>t.hint??o.value.hint),h=e.computed(()=>t.modalTitle??o.value.modalTitle),s=e.computed(()=>t.intro??o.value.intro),c=e.computed(()=>t.whatsNext??o.value.whatsNext),i=e.computed(()=>t.participate??o.value.participate),p=e.computed(()=>t.support??o.value.support),f=e.computed(()=>t.contactSupportLabel??N),B=e.computed(()=>t.dismissLabel??x),k=()=>{l.open(),n("open")},u=()=>{l.close(),t.supportUrl&&window.open(t.supportUrl,"_blank","noopener,noreferrer"),n("contact-support")},d=()=>{l.close(),n("dismiss")};return(a,U)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([`${b.value}-filled`,"inline-flex items-center gap-1 text-xs font-semibold py-1 px-2.5 rounded-full shadow cursor-pointer hover:opacity-80 transition-opacity"]),title:r.value,"aria-label":r.value,onClick:k},[e.renderSlot(a.$slots,"badge",{},()=>[e.createTextVNode(e.toDisplayString(_.value)+" ",1),e.createVNode(e.unref(C.render),{class:"w-3.5 h-3.5","aria-hidden":"true"})])],10,w),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.unref(m.OneModal),{"use-modal":e.unref(l),title:h.value},{default:e.withCtx(()=>[e.createElementVNode("div",L,[e.renderSlot(a.$slots,"body",{},()=>[s.value?(e.openBlock(),e.createElementBlock("p",D,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("p",E,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("p",V,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("p",O,e.toDisplayString(p.value),1)):e.createCommentVNode("",!0)]),e.renderSlot(a.$slots,"actions",{contactSupport:u,dismiss:d},()=>[e.createElementVNode("div",q,[a.showContactSupport?(e.openBlock(),e.createBlock(e.unref(v.OneButton),{key:0,variant:"secondary",label:f.value,onClick:u},null,8,["label"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.OneButton),{variant:"primary",label:B.value,onClick:d},null,8,["label"])])])])]),_:3},8,["use-modal","title"])]))],64))}});exports.OneStageBadge=M;exports.stageDefaults=y;
@@ -0,0 +1,3 @@
1
+ export { default as OneStageBadge } from './OneStageBadge.vue';
2
+ export type { LaunchStage, StageDefaults, StageBadgeProps } from './stageBadge';
3
+ export { stageDefaults } from './stageBadge';
@@ -0,0 +1,124 @@
1
+ import { defineComponent as D, computed as e, openBlock as a, createElementBlock as l, Fragment as E, createElementVNode as u, normalizeClass as U, renderSlot as d, createTextVNode as A, toDisplayString as s, createVNode as m, unref as r, createBlock as f, Teleport as M, withCtx as $, createCommentVNode as n } from "vue";
2
+ import { u as P, O as V } from "../useModal-7fe9444b.js";
3
+ import { OneButton as x } from "../button/index.js";
4
+ import { r as F } from "../InformationCircleIcon-2f6097a0.js";
5
+ import "../_plugin-vue_export-helper-dad06003.js";
6
+ import "../SpinnerIcon-74648c98.js";
7
+ import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
8
+ const I = {
9
+ alpha: {
10
+ color: "yellow",
11
+ label: "Дочасний доступ",
12
+ hint: "Натисніть, щоб дізнатися більше про стадію запуску сервісу",
13
+ modalTitle: "Сервіс у режимі дочасного доступу",
14
+ intro: "Зараз сервіс відкритий обмеженому колу користувачів OneB. Він уже працює, але ще активно розвивається — ми додаємо нові можливості та вдосконалюємо наявні, тож інколи можливі помилки або зміни в інтерфейсі.",
15
+ whatsNext: "Далі на сервіс чекає етап підготовки до релізу, а потім — повноцінний запуск. Дякуємо, що користуєтеся ним уже зараз і допомагаєте робити його кращим.",
16
+ participate: "Це ваша унікальна можливість вплинути на розробку: поділіться своїми ідеями — які функції додати чи що змінити, — і ми врахуємо їх у наступних оновленнях.",
17
+ support: "Якщо ви знайшли помилку або щось працює не так, як очікували — напишіть у підтримку, і ми оперативно все виправимо."
18
+ },
19
+ beta: {
20
+ color: "blue",
21
+ label: "Пре-реліз",
22
+ hint: "Натисніть, щоб дізнатися більше про стадію запуску сервісу",
23
+ modalTitle: "Сервіс у режимі підготовки до релізу",
24
+ intro: "Сервіс уже майже готовий до повноцінного запуску. Основні можливості стабільні, ми завершуємо фінальне шліфування — інколи ще можливі незначні зміни в інтерфейсі.",
25
+ whatsNext: "Найближчим часом — повноцінний реліз. Дякуємо, що з нами на цьому етапі й допомагаєте відполірувати останні деталі.",
26
+ participate: "Ваші ідеї досі важливі: підкажіть, що покращити перед релізом, — і ми постараємося врахувати це.",
27
+ support: "Помітили помилку чи незручність — напишіть у підтримку, ми швидко відреагуємо."
28
+ }
29
+ }, j = "Написати в підтримку", q = "Зрозуміло", z = {
30
+ stage: {
31
+ type: String,
32
+ required: !0
33
+ },
34
+ color: { type: String },
35
+ label: { type: String },
36
+ hint: { type: String },
37
+ modalTitle: { type: String },
38
+ intro: { type: String },
39
+ whatsNext: { type: String },
40
+ participate: { type: String },
41
+ support: { type: String },
42
+ contactSupportLabel: { type: String },
43
+ dismissLabel: { type: String },
44
+ showContactSupport: { type: Boolean, default: !0 },
45
+ /** Куди веде «Написати в підтримку». Дефолт — спільний support-бот OneB.
46
+ * Передайте '' щоб кнопка лише емітила `contact-support` (застосунок обробляє сам,
47
+ * напр. відкриває власну модалку каналів). */
48
+ supportUrl: { type: String, default: "https://t.me/onebapp_bot" }
49
+ }, H = ["title", "aria-label"], R = { class: "p-4 space-y-3 text-sm text-gray-700" }, W = { key: 0 }, G = { key: 1 }, J = { key: 2 }, K = { key: 3 }, Q = { class: "flex justify-end space-x-3 pt-2" }, st = /* @__PURE__ */ D({
50
+ __name: "OneStageBadge",
51
+ props: z,
52
+ emits: ["contact-support", "dismiss", "open"],
53
+ setup(C, { emit: w }) {
54
+ const t = C, c = w, i = P(!1), o = e(() => I[t.stage]), L = e(() => t.color ?? o.value.color), T = e(() => t.label ?? o.value.label), v = e(() => t.hint ?? o.value.hint), k = e(() => t.modalTitle ?? o.value.modalTitle), y = e(() => t.intro ?? o.value.intro), _ = e(() => t.whatsNext ?? o.value.whatsNext), b = e(() => t.participate ?? o.value.participate), g = e(() => t.support ?? o.value.support), B = e(
55
+ () => t.contactSupportLabel ?? j
56
+ ), N = e(() => t.dismissLabel ?? q), O = () => {
57
+ i.open(), c("open");
58
+ }, S = () => {
59
+ i.close(), t.supportUrl && window.open(t.supportUrl, "_blank", "noopener,noreferrer"), c("contact-support");
60
+ }, h = () => {
61
+ i.close(), c("dismiss");
62
+ };
63
+ return (p, X) => (a(), l(E, null, [
64
+ u("button", {
65
+ type: "button",
66
+ class: U([
67
+ `${L.value}-filled`,
68
+ "inline-flex items-center gap-1 text-xs font-semibold py-1 px-2.5 rounded-full shadow cursor-pointer hover:opacity-80 transition-opacity"
69
+ ]),
70
+ title: v.value,
71
+ "aria-label": v.value,
72
+ onClick: O
73
+ }, [
74
+ d(p.$slots, "badge", {}, () => [
75
+ A(s(T.value) + " ", 1),
76
+ m(r(F), {
77
+ class: "w-3.5 h-3.5",
78
+ "aria-hidden": "true"
79
+ })
80
+ ])
81
+ ], 10, H),
82
+ (a(), f(M, { to: "body" }, [
83
+ m(r(V), {
84
+ "use-modal": r(i),
85
+ title: k.value
86
+ }, {
87
+ default: $(() => [
88
+ u("div", R, [
89
+ d(p.$slots, "body", {}, () => [
90
+ y.value ? (a(), l("p", W, s(y.value), 1)) : n("", !0),
91
+ _.value ? (a(), l("p", G, s(_.value), 1)) : n("", !0),
92
+ b.value ? (a(), l("p", J, s(b.value), 1)) : n("", !0),
93
+ g.value ? (a(), l("p", K, s(g.value), 1)) : n("", !0)
94
+ ]),
95
+ d(p.$slots, "actions", {
96
+ contactSupport: S,
97
+ dismiss: h
98
+ }, () => [
99
+ u("div", Q, [
100
+ p.showContactSupport ? (a(), f(r(x), {
101
+ key: 0,
102
+ variant: "secondary",
103
+ label: B.value,
104
+ onClick: S
105
+ }, null, 8, ["label"])) : n("", !0),
106
+ m(r(x), {
107
+ variant: "primary",
108
+ label: N.value,
109
+ onClick: h
110
+ }, null, 8, ["label"])
111
+ ])
112
+ ])
113
+ ])
114
+ ]),
115
+ _: 3
116
+ }, 8, ["use-modal", "title"])
117
+ ]))
118
+ ], 64));
119
+ }
120
+ });
121
+ export {
122
+ st as OneStageBadge,
123
+ I as stageDefaults
124
+ };
@@ -0,0 +1,64 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export type LaunchStage = 'alpha' | 'beta';
3
+ export interface StageDefaults {
4
+ /** Color token used as `${color}-filled` (shared with OneLabel). */
5
+ color: string;
6
+ label: string;
7
+ hint: string;
8
+ modalTitle: string;
9
+ intro: string;
10
+ whatsNext: string;
11
+ participate: string;
12
+ support: string;
13
+ }
14
+ export declare const stageDefaults: Record<LaunchStage, StageDefaults>;
15
+ export declare const DEFAULT_CONTACT_SUPPORT_LABEL = "\u041D\u0430\u043F\u0438\u0441\u0430\u0442\u0438 \u0432 \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u043A\u0443";
16
+ export declare const DEFAULT_DISMISS_LABEL = "\u0417\u0440\u043E\u0437\u0443\u043C\u0456\u043B\u043E";
17
+ export declare const stageBadgeProps: {
18
+ stage: {
19
+ type: PropType<LaunchStage>;
20
+ required: true;
21
+ };
22
+ color: {
23
+ type: StringConstructor;
24
+ };
25
+ label: {
26
+ type: StringConstructor;
27
+ };
28
+ hint: {
29
+ type: StringConstructor;
30
+ };
31
+ modalTitle: {
32
+ type: StringConstructor;
33
+ };
34
+ intro: {
35
+ type: StringConstructor;
36
+ };
37
+ whatsNext: {
38
+ type: StringConstructor;
39
+ };
40
+ participate: {
41
+ type: StringConstructor;
42
+ };
43
+ support: {
44
+ type: StringConstructor;
45
+ };
46
+ contactSupportLabel: {
47
+ type: StringConstructor;
48
+ };
49
+ dismissLabel: {
50
+ type: StringConstructor;
51
+ };
52
+ showContactSupport: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ /** Куди веде «Написати в підтримку». Дефолт — спільний support-бот OneB.
57
+ * Передайте '' щоб кнопка лише емітила `contact-support` (застосунок обробляє сам,
58
+ * напр. відкриває власну модалку каналів). */
59
+ supportUrl: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ };
64
+ export type StageBadgeProps = ExtractPropTypes<typeof stageBadgeProps>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("../XMarkIcon-f94baa4c.cjs"),i=require("../NoSymbolIcon-5d326416.cjs"),v={variant:{type:String,default:"success"},title:{type:String,required:!0},message:{type:String,required:!0},compact:{type:Boolean,default:!1},timeout:{type:Number,default:5e3},icon:{type:[Function,Object]}},y=["rounded-10","overflow-hidden","shadow-[0px_0px_15px_0px_rgba(0,_0,_0,_0.20)]"],w="px-4 pt-4 pb-[18px]",N="px-4 py-5",V={success:["bg-success-base","text-white"],warning:["bg-warning-base","text-black"],critical:["bg-danger-base","text-white"],info:["bg-light-base","text-black"]},_=(o="success",a=!1)=>{const t=[...y];return t.push(a?N:w),t.push(...V[o]??[]),t},E={class:"flex gap-4 items-center"},T={class:"flex flex-1 gap-2 items-center"},B={class:"flex-1 font-semibold text-xl leading-[1.25]"},S={key:0,class:"flex"},I={class:"flex-1 text-base leading-[1.5]"},q={key:0,class:"flex"},z={class:"flex gap-2.5"},M=e.defineComponent({__name:"OneToast",props:v,emits:["close"],setup(o,{emit:a}){const t=o,r=a,n={success:"text-white",warning:"text-black",critical:"text-white",info:"text-primary-base"},u={success:"text-white",warning:"text-black",critical:"text-white",info:"text-black"},g={success:i.render,warning:i.render$1,critical:i.render$2,info:i.render$3},b=e.computed(()=>n[t.variant]),x=e.computed(()=>u[t.variant]),h=e.computed(()=>t.icon??g[t.variant]),k=e.computed(()=>_(t.variant,t.compact)),l=e.ref(null),m=e.ref(!0),p=()=>{t.timeout&&(l.value=setTimeout(()=>{d()},t.timeout))},f=()=>{l.value&&(clearTimeout(l.value),l.value=null)},d=()=>{f(),m.value=!1,r("close")};return e.onMounted(()=>{p()}),(s,c)=>m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(k.value),onMouseenter:f,onMouseleave:p},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col",s.compact?"":"gap-4"])},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col",s.compact?"":"gap-3"])},[e.createElementVNode("div",E,[e.createElementVNode("div",T,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{class:e.normalizeClass([b.value,"h-7 w-7 shrink-0"])},null,8,["class"])),e.createElementVNode("h3",B,e.toDisplayString(s.title),1)]),e.createElementVNode("button",{onClick:d,class:e.normalizeClass([x.value,"shrink-0"])},[e.createVNode(e.unref(C.render),{class:"h-6 w-6"})],2)]),!s.compact&&s.message?(e.openBlock(),e.createElementBlock("div",S,[c[0]||(c[0]=e.createElementVNode("div",{class:"w-[36px] shrink-0"},null,-1)),e.createElementVNode("p",I,e.toDisplayString(s.message),1)])):e.createCommentVNode("",!0)],2),!s.compact&&s.$slots.button?(e.openBlock(),e.createElementBlock("div",q,[c[1]||(c[1]=e.createElementVNode("div",{class:"w-[32px] shrink-0"},null,-1)),e.createElementVNode("div",z,[e.renderSlot(s.$slots,"button",{hideBlock:d})])])):e.createCommentVNode("",!0)],2)],34)):e.createCommentVNode("",!0)}});function $(){const o=e.ref([]);function a(n,u={message:""}){o.value.push({title:n,...u})}function t(n){o.value.splice(n,1)}function r(){o.value=[]}return{toasts:o,notify:a,close:t,closeAll:r}}exports.OneToast=M;exports.toastProps=v;exports.useToast=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("../XMarkIcon-f94baa4c.cjs"),d=require("../NoSymbolIcon-e84375bb.cjs"),y=require("../InformationCircleIcon-d6b67d5d.cjs"),v={variant:{type:String,default:"success"},title:{type:String,required:!0},message:{type:String,required:!0},compact:{type:Boolean,default:!1},timeout:{type:Number,default:5e3},icon:{type:[Function,Object]}},w=["rounded-10","overflow-hidden","shadow-[0px_0px_15px_0px_rgba(0,_0,_0,_0.20)]"],N="px-4 pt-4 pb-[18px]",V="px-4 py-5",_={success:["bg-success-base","text-white"],warning:["bg-warning-base","text-black"],critical:["bg-danger-base","text-white"],info:["bg-light-base","text-black"]},E=(o="success",n=!1)=>{const t=[...w];return t.push(n?V:N),t.push(..._[o]??[]),t},T={class:"flex gap-4 items-center"},B={class:"flex flex-1 gap-2 items-center"},I={class:"flex-1 font-semibold text-xl leading-[1.25]"},S={key:0,class:"flex"},q={class:"flex-1 text-base leading-[1.5]"},z={key:0,class:"flex"},M={class:"flex gap-2.5"},D=e.defineComponent({__name:"OneToast",props:v,emits:["close"],setup(o,{emit:n}){const t=o,i=n,a={success:"text-white",warning:"text-black",critical:"text-white",info:"text-primary-base"},r={success:"text-white",warning:"text-black",critical:"text-white",info:"text-black"},g={success:d.render,warning:d.render$1,critical:d.render$2,info:y.render},b=e.computed(()=>a[t.variant]),x=e.computed(()=>r[t.variant]),h=e.computed(()=>t.icon??g[t.variant]),k=e.computed(()=>E(t.variant,t.compact)),l=e.ref(null),m=e.ref(!0),p=()=>{t.timeout&&(l.value=setTimeout(()=>{u()},t.timeout))},f=()=>{l.value&&(clearTimeout(l.value),l.value=null)},u=()=>{f(),m.value=!1,i("close")};return e.onMounted(()=>{p()}),(s,c)=>m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(k.value),onMouseenter:f,onMouseleave:p},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col",s.compact?"":"gap-4"])},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col",s.compact?"":"gap-3"])},[e.createElementVNode("div",T,[e.createElementVNode("div",B,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{class:e.normalizeClass([b.value,"h-7 w-7 shrink-0"])},null,8,["class"])),e.createElementVNode("h3",I,e.toDisplayString(s.title),1)]),e.createElementVNode("button",{onClick:u,class:e.normalizeClass([x.value,"shrink-0"])},[e.createVNode(e.unref(C.render),{class:"h-6 w-6"})],2)]),!s.compact&&s.message?(e.openBlock(),e.createElementBlock("div",S,[c[0]||(c[0]=e.createElementVNode("div",{class:"w-[36px] shrink-0"},null,-1)),e.createElementVNode("p",q,e.toDisplayString(s.message),1)])):e.createCommentVNode("",!0)],2),!s.compact&&s.$slots.button?(e.openBlock(),e.createElementBlock("div",z,[c[1]||(c[1]=e.createElementVNode("div",{class:"w-[32px] shrink-0"},null,-1)),e.createElementVNode("div",M,[e.renderSlot(s.$slots,"button",{hideBlock:u})])])):e.createCommentVNode("",!0)],2)],34)):e.createCommentVNode("",!0)}});function O(){const o=e.ref([]);function n(a,r={message:""}){o.value.push({title:a,...r})}function t(a){o.value.splice(a,1)}function i(){o.value=[]}return{toasts:o,notify:n,close:t,closeAll:i}}exports.OneToast=D;exports.toastProps=v;exports.useToast=O;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as $, computed as r, ref as g, onMounted as B, openBlock as u, createElementBlock as f, normalizeClass as l, createElementVNode as s, createBlock as I, resolveDynamicComponent as S, toDisplayString as k, createVNode as N, unref as D, createCommentVNode as v, renderSlot as M } from "vue";
2
2
  import { r as O } from "../XMarkIcon-51ef0691.js";
3
- import { r as V, a as q, b as E, c as L } from "../NoSymbolIcon-e58a9aee.js";
3
+ import { r as V, a as q, b as E } from "../NoSymbolIcon-b3470a26.js";
4
+ import { r as L } from "../InformationCircleIcon-2f6097a0.js";
4
5
  const j = {
5
6
  variant: {
6
7
  type: String,
@@ -43,7 +44,7 @@ const j = {
43
44
  }, R = { class: "flex-1 text-base leading-[1.5]" }, U = {
44
45
  key: 0,
45
46
  class: "flex"
46
- }, W = { class: "flex gap-2.5" }, ee = /* @__PURE__ */ $({
47
+ }, W = { class: "flex gap-2.5" }, se = /* @__PURE__ */ $({
47
48
  __name: "OneToast",
48
49
  props: j,
49
50
  emits: ["close"],
@@ -115,7 +116,7 @@ const j = {
115
116
  ], 34)) : v("", !0);
116
117
  }
117
118
  });
118
- function se() {
119
+ function te() {
119
120
  const a = g([]);
120
121
  function o(n, d = { message: "" }) {
121
122
  a.value.push({ title: n, ...d });
@@ -134,7 +135,7 @@ function se() {
134
135
  };
135
136
  }
136
137
  export {
137
- ee as OneToast,
138
+ se as OneToast,
138
139
  j as toastProps,
139
- se as useToast
140
+ te as useToast
140
141
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneb/ui-vue",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -67,6 +67,9 @@
67
67
  "skeleton": [
68
68
  "./dist/skeleton/index.d.ts"
69
69
  ],
70
+ "stageBadge": [
71
+ "./dist/stageBadge/index.d.ts"
72
+ ],
70
73
  "switch": [
71
74
  "./dist/switch/index.d.ts"
72
75
  ],
@@ -164,6 +167,10 @@
164
167
  "types": "./dist/skeleton/index.d.ts",
165
168
  "import": "./dist/skeleton/index.js"
166
169
  },
170
+ "./stageBadge": {
171
+ "types": "./dist/stageBadge/index.d.ts",
172
+ "import": "./dist/stageBadge/index.js"
173
+ },
167
174
  "./switch": {
168
175
  "types": "./dist/switch/index.d.ts",
169
176
  "import": "./dist/switch/index.js"