@oneb/ui-vue 0.3.30 → 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.
@@ -1,5 +1,6 @@
1
1
  import type { ExtractPropTypes, FunctionalComponent, Component } from 'vue';
2
2
  import type { AppType, WorkspaceType } from '../layout/layout';
3
+ import type { TranslateFunction } from '../i18n/plugin';
3
4
  export declare const userMenuProps: {
4
5
  user: {
5
6
  type: PropType<{
@@ -24,24 +25,15 @@ export declare const userMenuProps: {
24
25
  app: {
25
26
  type: PropType<AppType>;
26
27
  };
27
- accountLabel: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- logoutLabel: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- versionLabel: {
36
- type: StringConstructor;
37
- default: string;
38
- };
39
28
  onAccount: {
40
29
  type: FunctionConstructor;
41
30
  };
42
31
  onLogout: {
43
32
  type: FunctionConstructor;
44
33
  };
34
+ t: {
35
+ type: PropType<TranslateFunction>;
36
+ };
45
37
  };
46
38
  export type WorkspListType = {
47
39
  name: string;
@@ -76,16 +68,16 @@ export type socialListType = {
76
68
  icon: FunctionalComponent | Component;
77
69
  };
78
70
  export type helpType = {
79
- label: string;
80
- social: string;
81
- helpButton: helpButtonListType[];
82
- helpList: helpListType[];
83
- video: videoListType[];
84
- socialList: socialListType[];
85
- socialButt: string;
86
- termsOffer: termsOfferListType[];
87
- buttMore: string;
88
- buttNoMore: string;
71
+ label?: string;
72
+ social?: string;
73
+ helpButton?: helpButtonListType[];
74
+ helpList?: helpListType[];
75
+ video?: videoListType[];
76
+ socialList?: socialListType[];
77
+ socialButt?: string;
78
+ termsOffer?: termsOfferListType[];
79
+ buttMore?: string;
80
+ buttNoMore?: string;
89
81
  };
90
82
  export declare const browserMenuProps: any[] | {
91
83
  workspace: {
@@ -109,25 +101,25 @@ export declare const browserMenuProps: any[] | {
109
101
  type: StringConstructor;
110
102
  default: string;
111
103
  };
112
- appsTitle: {
113
- type: StringConstructor;
114
- default: string;
115
- };
116
- changeLabel: {
117
- type: StringConstructor;
118
- default: string;
119
- };
120
104
  onChange: {
121
105
  type: FunctionConstructor;
122
106
  };
123
107
  onApp: {
124
108
  type: FunctionConstructor;
125
109
  };
110
+ t: {
111
+ type: PropType<TranslateFunction>;
112
+ };
126
113
  };
127
114
  export declare const helpMenuProps: {
128
115
  help: {
129
116
  type: PropType<helpType>;
130
- required: boolean;
117
+ };
118
+ helpSlug: {
119
+ type: StringConstructor;
120
+ };
121
+ t: {
122
+ type: PropType<TranslateFunction>;
131
123
  };
132
124
  };
133
125
  export type UserMenuProps = ExtractPropTypes<typeof userMenuProps>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("vue"),s={"ui.months.0":"січень","ui.months.1":"лютий","ui.months.2":"березень","ui.months.3":"квітень","ui.months.4":"травень","ui.months.5":"червень","ui.months.6":"липень","ui.months.7":"серпень","ui.months.8":"вересень","ui.months.9":"жовтень","ui.months.10":"листопад","ui.months.11":"грудень","ui.months_short.0":"січ","ui.months_short.1":"лют","ui.months_short.2":"бер","ui.months_short.3":"кві","ui.months_short.4":"тра","ui.months_short.5":"чер","ui.months_short.6":"лип","ui.months_short.7":"сер","ui.months_short.8":"вер","ui.months_short.9":"жов","ui.months_short.10":"лис","ui.months_short.11":"гру","ui.days_short.0":"нд","ui.days_short.1":"пн","ui.days_short.2":"вт","ui.days_short.3":"ср","ui.days_short.4":"чт","ui.days_short.5":"пт","ui.days_short.6":"сб","ui.dataTable.loading":"Завантаження...","ui.dataTable.noRecords":"Записи не знайдені","ui.dataTable.showMore":"Показати більше","ui.dataTable.perPage":"{count} / стор.","ui.dataTable.selectAll":"Обрати все","ui.dropdown.selectAll":"Обрати все","ui.dropdown.clear":"Очистити","ui.dropdown.nothingFound":"Нічого не знайдено","ui.entity_picker.Loading":"Завантаження...","ui.entity_picker.Select":"Вибір","ui.entity_picker.Search":"Пошук...","ui.entity_picker.Change":"Змінити","ui.entity_picker.Edit":"Редагувати","ui.entity_picker.List empty":"Список порожній","ui.entity_picker.Nothing found for":"За запитом нічого не знайдено:","ui.period_select.Select date":"Оберіть дату","ui.period_select.Date group title":"Дата","ui.period_select.Date group subtitle":"Один день","ui.period_select.Period group title":"Період","ui.period_select.Period group subtitle":"Діапазон дат","ui.period_select.Select date CTA":"Обрати дату","ui.period_select.Select dates CTA":"Обрати діапазон","ui.period_select.From date":"Від","ui.period_select.End date":"До","ui.period_select.Cancel":"Скасувати","ui.period_select.Apply":"Застосувати","ui.period_select.Months":"Місяці","ui.period_select.Quarters":"Квартали","ui.period_select.Years":"Роки","ui.period_select.Fast periods":"Швидкий вибір","ui.period_select.Date history label":"Історія дат","ui.period_select.Weeks history label":"Тижні","ui.period_select.Months history label":"Місяці","ui.period_select.Quarters history label":"Квартали","ui.period_select.Years history label":"Роки","ui.period_select.Today":"Сьогодні","ui.period_select.Yesterday":"Вчора","ui.period_select.This week":"Цей тиждень","ui.period_select.Last week":"Минулий тиждень","ui.period_select.This month":"Цей місяць","ui.period_select.Last month":"Минулий місяць","ui.period_select.Last two month":"Останні два місяці","ui.period_select.Last three month":"Останні три місяці","ui.period_select.This quarter":"Цей квартал","ui.period_select.Last quarter":"Минулий квартал","ui.period_select.This Year":"Цей рік","ui.period_select.Last year":"Минулий рік","ui.period_select.until current moment":"До поточного моменту","ui.period_select.until end of today":"До кінця сьогодні","ui.period_select.until end of yesterday":"До кінця вчора","ui.period_select.until end of month":"До кінця місяця","ui.period_select.until end of last month":"До кінця минулого місяця","ui.period_select.day_label":"{dayOfWeek}, {day} {month} {year}","ui.period_select.date_short":"{day} {month} {year}","ui.period_select.month_label":"{month} {year}","ui.period_select.quarter_label":"Квартал {year} №{quarter}","ui.period_select.quarter_description":"{start} - {end}","ui.period_select.week_label":"{weekNumber} тиждень","ui.period_select.week_description":"{start} - {end}","ui.period_select.From":"Від","ui.period_select.Till":"До"},a=(t,e)=>e?t.replace(/\{(\w+)\}/g,(r,i)=>String(e[i]??r)):t,u=Symbol("OnebI18n"),c={install(t,e){const r=(e==null?void 0:e.t)??((i,o)=>{var l;const n=((l=e==null?void 0:e.translations)==null?void 0:l[i])??s[i]??i;return a(n,o)});t.provide(u,r)}},_=(t,e)=>{const r=s[t]??t;return e?r.replace(/\{(\w+)\}/g,(i,o)=>String(e[o]??i)):r};function h(){return d.inject(u,_)}exports.OnebI18n=c;exports.OnebI18nKey=u;exports.defaultTranslations=s;exports.useOnebI18n=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),r={"ui.months.0":"січень","ui.months.1":"лютий","ui.months.2":"березень","ui.months.3":"квітень","ui.months.4":"травень","ui.months.5":"червень","ui.months.6":"липень","ui.months.7":"серпень","ui.months.8":"вересень","ui.months.9":"жовтень","ui.months.10":"листопад","ui.months.11":"грудень","ui.months_short.0":"січ","ui.months_short.1":"лют","ui.months_short.2":"бер","ui.months_short.3":"кві","ui.months_short.4":"тра","ui.months_short.5":"чер","ui.months_short.6":"лип","ui.months_short.7":"сер","ui.months_short.8":"вер","ui.months_short.9":"жов","ui.months_short.10":"лис","ui.months_short.11":"гру","ui.days_short.0":"нд","ui.days_short.1":"пн","ui.days_short.2":"вт","ui.days_short.3":"ср","ui.days_short.4":"чт","ui.days_short.5":"пт","ui.days_short.6":"сб","ui.dataTable.loading":"Завантаження...","ui.dataTable.noRecords":"Записи не знайдені","ui.dataTable.showMore":"Показати більше","ui.dataTable.perPage":"{count} / стор.","ui.dataTable.selectAll":"Обрати все","ui.dropdown.selectAll":"Обрати все","ui.dropdown.clear":"Очистити","ui.dropdown.nothingFound":"Нічого не знайдено","ui.entity_picker.Loading":"Завантаження...","ui.entity_picker.Select":"Вибір","ui.entity_picker.Search":"Пошук...","ui.entity_picker.Change":"Змінити","ui.entity_picker.Edit":"Редагувати","ui.entity_picker.List empty":"Список порожній","ui.entity_picker.Nothing found for":"За запитом нічого не знайдено:","ui.period_select.Select date":"Оберіть дату","ui.period_select.Date group title":"Дата","ui.period_select.Date group subtitle":"Один день","ui.period_select.Period group title":"Період","ui.period_select.Period group subtitle":"Діапазон дат","ui.period_select.Select date CTA":"Обрати дату","ui.period_select.Select dates CTA":"Обрати діапазон","ui.period_select.From date":"Від","ui.period_select.End date":"До","ui.period_select.Cancel":"Скасувати","ui.period_select.Apply":"Застосувати","ui.period_select.Months":"Місяці","ui.period_select.Quarters":"Квартали","ui.period_select.Years":"Роки","ui.period_select.Fast periods":"Швидкий вибір","ui.period_select.Date history label":"Історія дат","ui.period_select.Weeks history label":"Тижні","ui.period_select.Months history label":"Місяці","ui.period_select.Quarters history label":"Квартали","ui.period_select.Years history label":"Роки","ui.period_select.Today":"Сьогодні","ui.period_select.Yesterday":"Вчора","ui.period_select.This week":"Цей тиждень","ui.period_select.Last week":"Минулий тиждень","ui.period_select.This month":"Цей місяць","ui.period_select.Last month":"Минулий місяць","ui.period_select.Last two month":"Останні два місяці","ui.period_select.Last three month":"Останні три місяці","ui.period_select.This quarter":"Цей квартал","ui.period_select.Last quarter":"Минулий квартал","ui.period_select.This Year":"Цей рік","ui.period_select.Last year":"Минулий рік","ui.period_select.until current moment":"До поточного моменту","ui.period_select.until end of today":"До кінця сьогодні","ui.period_select.until end of yesterday":"До кінця вчора","ui.period_select.until end of month":"До кінця місяця","ui.period_select.until end of last month":"До кінця минулого місяця","ui.period_select.day_label":"{dayOfWeek}, {day} {month} {year}","ui.period_select.date_short":"{day} {month} {year}","ui.period_select.month_label":"{month} {year}","ui.period_select.quarter_label":"Квартал {year} №{quarter}","ui.period_select.quarter_description":"{start} - {end}","ui.period_select.week_label":"{weekNumber} тиждень","ui.period_select.week_description":"{start} - {end}","ui.period_select.From":"Від","ui.period_select.Till":"До","ui.layout.apps":"Ваші додатки","ui.layout.workspaces":"Робочі простори","ui.layout.change_workspace":"Керувати робочими просторами","ui.layout.account":"Акаунт","ui.layout.logout":"Вийти","ui.layout.view_all":"Дивитися всі","ui.layout.hide":"Приховати","ui.layout.news":"Новини","ui.layout.support":"Підтримка","ui.layout.terms":"Умови","ui.layout.offer":"Оферта","ui.layout.plan":"Тариф","ui.layout.plan_title":"Тарифний план","ui.layout.powered_by":"Powered by","ui.help.title":"Допомога","ui.help.support":"Підтримка","ui.help.reference":"Довідка","ui.help.leave_request":"Залишити запит","ui.help.social":"Соціальні мережі","ui.help.more":"Дивитись всі","ui.help.hide":"Сховати","ui.help.terms":"Умови та Конфіденційність","ui.help.offer":"Публічна оферта"},d=(t,e)=>e?t.replace(/\{(\w+)\}/g,(o,i)=>String(e[i]??o)):t,s=Symbol("OnebI18n"),c={install(t,e){const o=(e==null?void 0:e.t)??((i,u)=>{var l;const a=((l=e==null?void 0:e.translations)==null?void 0:l[i])??r[i]??i;return d(a,u)});t.provide(s,o)}},_=(t,e)=>{const o=r[t]??t;return e?o.replace(/\{(\w+)\}/g,(i,u)=>String(e[u]??i)):o};function h(){return n.inject(s,_)}exports.OnebI18n=c;exports.OnebI18nKey=s;exports.defaultTranslations=r;exports.useOnebI18n=h;
@@ -1,5 +1,5 @@
1
1
  import { inject as n } from "vue";
2
- const u = {
2
+ const s = {
3
3
  // Month names (full)
4
4
  "ui.months.0": "січень",
5
5
  "ui.months.1": "лютий",
@@ -102,19 +102,44 @@ const u = {
102
102
  "ui.period_select.week_description": "{start} - {end}",
103
103
  // PeriodPicker - Display
104
104
  "ui.period_select.From": "Від",
105
- "ui.period_select.Till": "До"
106
- }, a = (t, e) => e ? t.replace(/\{(\w+)\}/g, (r, i) => String(e[i] ?? r)) : t, l = Symbol("OnebI18n"), h = {
105
+ "ui.period_select.Till": "До",
106
+ // Layout (sidebar / browser menu / user menu / layouts)
107
+ "ui.layout.apps": "Ваші додатки",
108
+ "ui.layout.workspaces": "Робочі простори",
109
+ "ui.layout.change_workspace": "Керувати робочими просторами",
110
+ "ui.layout.account": "Акаунт",
111
+ "ui.layout.logout": "Вийти",
112
+ "ui.layout.view_all": "Дивитися всі",
113
+ "ui.layout.hide": "Приховати",
114
+ "ui.layout.news": "Новини",
115
+ "ui.layout.support": "Підтримка",
116
+ "ui.layout.terms": "Умови",
117
+ "ui.layout.offer": "Оферта",
118
+ "ui.layout.plan": "Тариф",
119
+ "ui.layout.plan_title": "Тарифний план",
120
+ "ui.layout.powered_by": "Powered by",
121
+ // Help menu (shared defaults — links point to oneb.app)
122
+ "ui.help.title": "Допомога",
123
+ "ui.help.support": "Підтримка",
124
+ "ui.help.reference": "Довідка",
125
+ "ui.help.leave_request": "Залишити запит",
126
+ "ui.help.social": "Соціальні мережі",
127
+ "ui.help.more": "Дивитись всі",
128
+ "ui.help.hide": "Сховати",
129
+ "ui.help.terms": "Умови та Конфіденційність",
130
+ "ui.help.offer": "Публічна оферта"
131
+ }, d = (t, e) => e ? t.replace(/\{(\w+)\}/g, (o, i) => String(e[i] ?? o)) : t, l = Symbol("OnebI18n"), h = {
107
132
  install(t, e) {
108
- const r = (e == null ? void 0 : e.t) ?? ((i, o) => {
109
- var s;
110
- const d = ((s = e == null ? void 0 : e.translations) == null ? void 0 : s[i]) ?? u[i] ?? i;
111
- return a(d, o);
133
+ const o = (e == null ? void 0 : e.t) ?? ((i, u) => {
134
+ var r;
135
+ const a = ((r = e == null ? void 0 : e.translations) == null ? void 0 : r[i]) ?? s[i] ?? i;
136
+ return d(a, u);
112
137
  });
113
- t.provide(l, r);
138
+ t.provide(l, o);
114
139
  }
115
140
  }, c = (t, e) => {
116
- const r = u[t] ?? t;
117
- return e ? r.replace(/\{(\w+)\}/g, (i, o) => String(e[o] ?? i)) : r;
141
+ const o = s[t] ?? t;
142
+ return e ? o.replace(/\{(\w+)\}/g, (i, u) => String(e[u] ?? i)) : o;
118
143
  };
119
144
  function p() {
120
145
  return n(l, c);
@@ -122,6 +147,6 @@ function p() {
122
147
  export {
123
148
  h as OnebI18n,
124
149
  l as OnebI18nKey,
125
- u as defaultTranslations,
150
+ s as defaultTranslations,
126
151
  p as useOnebI18n
127
152
  };
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-79b2d83f.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-df4e18a9.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
  };