@jsg-developer/vue-pack 0.0.9-beta-2 → 0.0.9-beta-4

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.
Files changed (79) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/dist/TabelData-D4BrZQVx.cjs +15 -0
  3. package/dist/TabelData-DwLu2vs2.js +8144 -0
  4. package/dist/init.cjs.js +1 -1
  5. package/dist/init.es.js +1 -1
  6. package/dist/jsgd-vue-pack.cjs.js +1 -1
  7. package/dist/jsgd-vue-pack.es.js +631 -228
  8. package/dist/resize-5FyL6R_t.js +1308 -0
  9. package/dist/resize-Cp7HnMN4.cjs +1 -0
  10. package/dist/style.css +1 -1
  11. package/dist/types/components/Form/FormModal.vue.d.ts +2 -2
  12. package/dist/types/components/Tabel/TabelData.vue.d.ts +2 -2
  13. package/dist/types/components/UI/Display/BaseLabel.vue.d.ts +1 -16
  14. package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +2 -2
  15. package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +1 -1
  16. package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts +2 -2
  17. package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts +2 -2
  18. package/dist/types/components/index.d.ts +1 -1
  19. package/dist/vue.cjs.js +1 -1
  20. package/dist/vue.es.js +42 -47
  21. package/package.json +4 -1
  22. package/dist/chunks/ArrayObject-BA88O7bP.cjs.js +0 -1
  23. package/dist/chunks/ArrayObject-DYnfWxW-.es.js +0 -4
  24. package/dist/chunks/ColorPicker-CqrPcGbi.es.js +0 -4
  25. package/dist/chunks/ColorPicker-W_cn5ezl.cjs.js +0 -1
  26. package/dist/chunks/ComboboxComponent-BU-VQz2u.es.js +0 -4
  27. package/dist/chunks/ComboboxComponent-Dwlhjcru.cjs.js +0 -1
  28. package/dist/chunks/CurrencyInput-CNQzGqgu.cjs.js +0 -1
  29. package/dist/chunks/CurrencyInput-DVlgxmiu.es.js +0 -4
  30. package/dist/chunks/DateInput-B1EpMWa0.es.js +0 -4
  31. package/dist/chunks/DateInput-DMFCzQCr.cjs.js +0 -1
  32. package/dist/chunks/DateTimeInput-8w4T-EZX.cjs.js +0 -1
  33. package/dist/chunks/DateTimeInput-CC70bKnU.es.js +0 -4
  34. package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-BLJgRk91.es.js +0 -142
  35. package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-DmmVjDPV.cjs.js +0 -2
  36. package/dist/chunks/EmailInput-B0F3AHeq.es.js +0 -4
  37. package/dist/chunks/EmailInput-EU4MR4Jw.cjs.js +0 -1
  38. package/dist/chunks/FileArrayInput-CR-seczb.cjs.js +0 -1
  39. package/dist/chunks/FileArrayInput-DljGrRxA.es.js +0 -5
  40. package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-C7UCpQqG.es.js +0 -198
  41. package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-DtC-rygi.cjs.js +0 -2
  42. package/dist/chunks/FileInput-A1qH_OLh.cjs.js +0 -1
  43. package/dist/chunks/FileInput-CC5a2_o2.es.js +0 -4
  44. package/dist/chunks/GroupRenderer-BL1UiQs5.cjs.js +0 -1
  45. package/dist/chunks/GroupRenderer-Cj7o8pSh.es.js +0 -4
  46. package/dist/chunks/ImageArrayInput-B3f9I0U1.cjs.js +0 -1
  47. package/dist/chunks/ImageArrayInput-Bl0af1_X.es.js +0 -5
  48. package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-NqHOY8OF.es.js +0 -421
  49. package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-d88H9xj4.cjs.js +0 -2
  50. package/dist/chunks/ImageInput-DL8tNIdV.es.js +0 -4
  51. package/dist/chunks/ImageInput-KmSPSWhK.cjs.js +0 -1
  52. package/dist/chunks/NumberInput-BOjP2XCy.es.js +0 -4
  53. package/dist/chunks/NumberInput-C47NQmuA.cjs.js +0 -1
  54. package/dist/chunks/ObjectInput-DLkhG2Ha.es.js +0 -4
  55. package/dist/chunks/ObjectInput-e0FX9gIv.cjs.js +0 -1
  56. package/dist/chunks/PasswordInput-CgeIq4tr.cjs.js +0 -1
  57. package/dist/chunks/PasswordInput-CkF4phav.es.js +0 -4
  58. package/dist/chunks/RateInput-C7irYBQy.cjs.js +0 -1
  59. package/dist/chunks/RateInput-DYD5aMQX.es.js +0 -4
  60. package/dist/chunks/TabelData-DV56gH8Y.cjs.js +0 -1
  61. package/dist/chunks/TabelData-jJvzQD8f.es.js +0 -2438
  62. package/dist/chunks/TagInput-B6F5GleV.es.js +0 -4
  63. package/dist/chunks/TagInput-DC9jPCR9.cjs.js +0 -1
  64. package/dist/chunks/TelInput-BTioT0Aa.cjs.js +0 -1
  65. package/dist/chunks/TelInput-BwtzcLzw.es.js +0 -4
  66. package/dist/chunks/TextAreaInput-B-dcc-ch.es.js +0 -4
  67. package/dist/chunks/TextAreaInput-BXlGB91c.cjs.js +0 -1
  68. package/dist/chunks/TextAreaQuill-CJyF1I1R.es.js +0 -637
  69. package/dist/chunks/TextAreaQuill-DKgdqbEG.cjs.js +0 -1
  70. package/dist/chunks/TextInput-BwgTx7Xt.es.js +0 -4
  71. package/dist/chunks/TextInput-CC8TbO0N.cjs.js +0 -1
  72. package/dist/chunks/TimeInput-BvUbIEtA.cjs.js +0 -1
  73. package/dist/chunks/TimeInput-DsiHBSIo.es.js +0 -4
  74. package/dist/chunks/ToggleInput-DfAKsRdZ.cjs.js +0 -1
  75. package/dist/chunks/ToggleInput-mQ_mnG4E.es.js +0 -4
  76. package/dist/chunks/UrlInput-C8bIoQBb.cjs.js +0 -1
  77. package/dist/chunks/UrlInput-o1uJulwN.es.js +0 -4
  78. package/dist/chunks/resize-2N3sqejU.es.js +0 -6012
  79. package/dist/chunks/resize-DsxsWx52.cjs.js +0 -12
@@ -1,11 +1,11 @@
1
1
  import { FromModalProps } from '../../configs/types';
2
2
  declare const _default: import('vue').DefineComponent<FromModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
- submit: (value: Record<string, any>) => any;
4
3
  cancel: () => any;
4
+ submit: (value: Record<string, any>) => any;
5
5
  DataChildRemove: (value: number[]) => any;
6
6
  }, string, import('vue').PublicProps, Readonly<FromModalProps> & Readonly<{
7
- onSubmit?: ((value: Record<string, any>) => any) | undefined;
8
7
  onCancel?: (() => any) | undefined;
8
+ onSubmit?: ((value: Record<string, any>) => any) | undefined;
9
9
  onDataChildRemove?: ((value: number[]) => any) | undefined;
10
10
  }>, {
11
11
  demo: boolean;
@@ -36,7 +36,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
36
36
  onError?: (() => any) | undefined;
37
37
  onSuccess?: (() => any) | undefined;
38
38
  }>, {
39
- show: (type?: "error" | "success" | "loading", msg?: string) => void;
39
+ show: (type?: "loading" | "error" | "success", msg?: string) => void;
40
40
  hide: () => void;
41
41
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
42
  error: () => any;
@@ -52,7 +52,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
52
52
  onError?: (() => any) | undefined;
53
53
  onSuccess?: (() => any) | undefined;
54
54
  }>, {
55
- show: (type?: "error" | "success" | "loading", msg?: string) => void;
55
+ show: (type?: "loading" | "error" | "success", msg?: string) => void;
56
56
  hide: () => void;
57
57
  }, {}, {}, {}, {}> | null;
58
58
  alert: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
@@ -1,20 +1,5 @@
1
1
  type __VLS_Props = {
2
2
  label: string;
3
3
  };
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
- slots: {
7
- default?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: HTMLLabelElement;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
15
5
  export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<SelectDropdownProps, {}, {
11
11
  onError?: (() => any) | undefined;
12
12
  onSuccess?: (() => any) | undefined;
13
13
  }>, {
14
- show: (type?: "error" | "success" | "loading", msg?: string) => void;
14
+ show: (type?: "loading" | "error" | "success", msg?: string) => void;
15
15
  hide: () => void;
16
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
17
  error: () => any;
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<SelectDropdownProps, {}, {
27
27
  onError?: (() => any) | undefined;
28
28
  onSuccess?: (() => any) | undefined;
29
29
  }>, {
30
- show: (type?: "error" | "success" | "loading", msg?: string) => void;
30
+ show: (type?: "loading" | "error" | "success", msg?: string) => void;
31
31
  hide: () => void;
32
32
  }, {}, {}, {}, {}> | null;
33
33
  }, HTMLDivElement>;
@@ -1,4 +1,4 @@
1
- import { TextEdiorQuillProps } from '../../../index';
1
+ import { TextEdiorQuillProps } from '../../../configs/types/props.types';
2
2
  declare const _default: import('vue').DefineComponent<TextEdiorQuillProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  "update:modelValue": (value: string, key: string) => any;
4
4
  "push:error": (message: string[], key: string) => any;
@@ -3,10 +3,10 @@ type __VLS_Props = {
3
3
  initialValue?: string;
4
4
  };
5
5
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
- submit: (value: string) => any;
7
6
  close: () => any;
7
+ submit: (value: string) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onSubmit?: ((value: string) => any) | undefined;
10
9
  onClose?: (() => any) | undefined;
10
+ onSubmit?: ((value: string) => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
@@ -6,18 +6,18 @@ type __VLS_Props = {
6
6
  initialText?: string;
7
7
  };
8
8
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ close: () => any;
9
10
  submit: (payload: {
10
11
  url: string;
11
12
  alt?: string;
12
13
  text?: string;
13
14
  }) => any;
14
- close: () => any;
15
15
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onClose?: (() => any) | undefined;
16
17
  onSubmit?: ((payload: {
17
18
  url: string;
18
19
  alt?: string;
19
20
  text?: string;
20
21
  }) => any) | undefined;
21
- onClose?: (() => any) | undefined;
22
22
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -1,3 +1,3 @@
1
+ export * from './UI';
1
2
  export * from './Form';
2
3
  export * from './Tabel';
3
- export * from './UI';
package/dist/vue.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./chunks/resize-DsxsWx52.cjs.js"),n=require("./chunks/TabelData-DV56gH8Y.cjs.js"),s=require("./chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-DmmVjDPV.cjs.js"),u=require("./chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-DtC-rygi.cjs.js"),c=require("./chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-d88H9xj4.cjs.js"),m=require("./chunks/TextAreaQuill-DKgdqbEG.cjs.js"),p=require("./init.cjs.js"),i=Object.freeze(Object.defineProperty({__proto__:null,AlertApp:n._sfc_main$4,ArrayObjectInput:e._sfc_main$2,BaseImage:n._sfc_main,BaseLabel:n._sfc_main$1,ColorInput:e._sfc_main$3,CurrencyInput:e._sfc_main$5,DateInput:e._sfc_main$7,DateTimeInput:s._sfc_main,EmailInput:e._sfc_main$8,FieldDetailRenderer:n.FieldDetailRenderer,FileArrayInput:u._sfc_main,FileInput:e._sfc_main$9,FormFieldRenderer:e._sfc_main,FormModal:e.FormModal,GroupRendererInput:e._sfc_main$10,ImageArrayInput:c._sfc_main,ImageInput:e._sfc_main$11,ImagePreview:n._sfc_main$2,Loader:e.Loader,ModalDetailData:n.ModalDetailData,NumberInput:e._sfc_main$12,ObjectInput:e._sfc_main$13,PasswordInput:e._sfc_main$14,RateInput:e._sfc_main$6,SafeHtml:n._sfc_main$3,SelectedOptions:e._sfc_main$4,TabelData:n.TabelData,TagInput:e._sfc_main$15,TelInput:e._sfc_main$17,TextAreaInput:e._sfc_main$16,TextAreaQuillInput:m.default,TextInput:e._sfc_main$18,TimeInput:e._sfc_main$19,ToggleInput:e._sfc_main$20,Tooltip:e._sfc_main$1,UrlInput:e._sfc_main$21,WarningForm:n.WarningForm},Symbol.toStringTag,{value:"Module"})),o={install(r,t){for(const _ in i){const a=i[_];a&&(a.name||a.__name)&&r.component(_,a)}t&&p(t)}};module.exports=o;
1
+ "use strict";const n=require("./TabelData-D4BrZQVx.cjs"),m=require("./init.cjs.js"),_=Object.freeze(Object.defineProperty({__proto__:null,AlertApp:n._sfc_main$5,ArrayObjectInput:n._sfc_main$6,BaseImage:n._sfc_main,BaseLabel:n._sfc_main$1,ColorInput:n._sfc_main$7,CurrencyInput:n._sfc_main$9,DateInput:n._sfc_main$11,DateTimeInput:n._sfc_main$12,EmailInput:n._sfc_main$13,FieldDetailRenderer:n.FieldDetailRenderer,FileArrayInput:n._sfc_main$14,FileInput:n._sfc_main$15,FormFieldRenderer:n._sfc_main$29,FormModal:n.FormModal,GroupRendererInput:n._sfc_main$16,ImageArrayInput:n._sfc_main$17,ImageInput:n._sfc_main$18,ImagePreview:n._sfc_main$2,Loader:n.Loader,ModalDetailData:n.ModalDetailData,NumberInput:n._sfc_main$19,ObjectInput:n._sfc_main$20,PasswordInput:n._sfc_main$21,RateInput:n._sfc_main$10,SafeHtml:n._sfc_main$3,SelectedOptions:n._sfc_main$8,TabelData:n.TabelData,TagInput:n._sfc_main$22,TelInput:n._sfc_main$24,TextAreaInput:n._sfc_main$23,TextAreaQuillInput:n.TextAreaQuillInput,TextInput:n._sfc_main$25,TimeInput:n._sfc_main$26,ToggleInput:n._sfc_main$27,Tooltip:n._sfc_main$4,UrlInput:n._sfc_main$28,WarningForm:n.WarningForm},Symbol.toStringTag,{value:"Module"})),r={install(i,a){for(const t in _){const e=_[t];e&&(e.name||e.__name)&&i.component(t,e)}a&&m(a)}};module.exports=r;
package/dist/vue.es.js CHANGED
@@ -1,58 +1,53 @@
1
- import { b as t, c as m, e as i, g as r, h as o, i as c, _ as f, F as p, j as l, k as u, L as $, l as I, m as d, n as g, f as T, d as b, o as F, q as A, p as y, r as j, t as D, v as x, a as O, w as M } from "./chunks/resize-2N3sqejU.es.js";
2
- import { d as R, _ as S, a as k, F as v, b as w, M as C, c as L, T as P, W as h } from "./chunks/TabelData-jJvzQD8f.es.js";
3
- import { _ as q } from "./chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-BLJgRk91.es.js";
4
- import { _ as z } from "./chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-C7UCpQqG.es.js";
5
- import { _ as B } from "./chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-NqHOY8OF.es.js";
6
- import Q from "./chunks/TextAreaQuill-CJyF1I1R.es.js";
7
- import W from "./init.es.js";
1
+ import { e as t, f as i, _ as m, a as c, g as f, i as r, k as o, l as p, m as l, F as u, n as $, o as I, E as d, D as g, p as T, q as b, r as y, b as A, L as F, M as D, t as j, u as x, v as O, j as C, c as M, h as R, G as S, w as k, y as v, x as w, T as z, z as B, A as L, B as P, d as h, C as q, W as E } from "./TabelData-DwLu2vs2.js";
2
+ import G from "./init.es.js";
8
3
  const e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
4
  __proto__: null,
10
- AlertApp: R,
11
- ArrayObjectInput: t,
12
- BaseImage: S,
13
- BaseLabel: k,
14
- ColorInput: m,
15
- CurrencyInput: i,
16
- DateInput: r,
17
- DateTimeInput: q,
18
- EmailInput: o,
19
- FieldDetailRenderer: v,
20
- FileArrayInput: z,
21
- FileInput: c,
22
- FormFieldRenderer: f,
23
- FormModal: p,
24
- GroupRendererInput: l,
25
- ImageArrayInput: B,
26
- ImageInput: u,
27
- ImagePreview: w,
28
- Loader: $,
29
- ModalDetailData: C,
30
- NumberInput: I,
31
- ObjectInput: d,
32
- PasswordInput: g,
33
- RateInput: T,
34
- SafeHtml: L,
35
- SelectedOptions: b,
36
- TabelData: P,
37
- TagInput: F,
38
- TelInput: A,
39
- TextAreaInput: y,
40
- TextAreaQuillInput: Q,
41
- TextInput: j,
42
- TimeInput: D,
43
- ToggleInput: x,
44
- Tooltip: O,
45
- UrlInput: M,
46
- WarningForm: h
47
- }, Symbol.toStringTag, { value: "Module" })), V = {
5
+ AlertApp: t,
6
+ ArrayObjectInput: i,
7
+ BaseImage: m,
8
+ BaseLabel: c,
9
+ ColorInput: f,
10
+ CurrencyInput: r,
11
+ DateInput: o,
12
+ DateTimeInput: p,
13
+ EmailInput: l,
14
+ FieldDetailRenderer: u,
15
+ FileArrayInput: $,
16
+ FileInput: I,
17
+ FormFieldRenderer: d,
18
+ FormModal: g,
19
+ GroupRendererInput: T,
20
+ ImageArrayInput: b,
21
+ ImageInput: y,
22
+ ImagePreview: A,
23
+ Loader: F,
24
+ ModalDetailData: D,
25
+ NumberInput: j,
26
+ ObjectInput: x,
27
+ PasswordInput: O,
28
+ RateInput: C,
29
+ SafeHtml: M,
30
+ SelectedOptions: R,
31
+ TabelData: S,
32
+ TagInput: k,
33
+ TelInput: v,
34
+ TextAreaInput: w,
35
+ TextAreaQuillInput: z,
36
+ TextInput: B,
37
+ TimeInput: L,
38
+ ToggleInput: P,
39
+ Tooltip: h,
40
+ UrlInput: q,
41
+ WarningForm: E
42
+ }, Symbol.toStringTag, { value: "Module" })), J = {
48
43
  install(_, n) {
49
44
  for (const s in e) {
50
45
  const a = e[s];
51
46
  a && (a.name || a.__name) && _.component(s, a);
52
47
  }
53
- n && W(n);
48
+ n && G(n);
54
49
  }
55
50
  };
56
51
  export {
57
- V as default
52
+ J as default
58
53
  };
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@jsg-developer/vue-pack",
3
- "version": "0.0.9-beta-2",
3
+ "version": "0.0.9-beta-4",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
7
+ "sideEffects": [
8
+ "**/*.css"
9
+ ],
7
10
  "files": [
8
11
  "dist",
9
12
  "THIRD_PARTY_LICENSES.md",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main$2;
@@ -1,4 +0,0 @@
1
- import { b as f } from "./resize-2N3sqejU.es.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { c as f } from "./resize-2N3sqejU.es.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main$3;
@@ -1,4 +0,0 @@
1
- import { d as f } from "./resize-2N3sqejU.es.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main$4;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main$5;
@@ -1,4 +0,0 @@
1
- import { e } from "./resize-2N3sqejU.es.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { g as f } from "./resize-2N3sqejU.es.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main$7;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateTimeInput.vue_vue_type_script_setup_true_lang-DmmVjDPV.cjs.js");exports.default=e._sfc_main;
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./DateTimeInput.vue_vue_type_script_setup_true_lang-BLJgRk91.es.js";
2
- export {
3
- f as default
4
- };
@@ -1,142 +0,0 @@
1
- import { defineComponent as _, inject as C, ref as v, computed as x, watch as N, createElementBlock as p, openBlock as u, createElementVNode as m, createCommentVNode as S, normalizeClass as T, createTextVNode as w, createBlock as B, toDisplayString as k, unref as F, withCtx as z, Fragment as L, renderList as O } from "vue";
2
- import { U as E, z as H, aa as b, a as U } from "./resize-2N3sqejU.es.js";
3
- import "dompurify";
4
- import "lodash.isequal";
5
- import "zod";
6
- const q = { class: "jsgd-w-full jsgd-relative jsgd-mb-4" }, A = ["for"], P = { class: "jsgd-relative" }, Y = ["id", "value", "disabled", "min", "max", "placeholder"], G = {
7
- key: 0,
8
- class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
9
- }, ee = /* @__PURE__ */ _({
10
- __name: "DateTimeInput",
11
- props: {
12
- id: { type: String, default: () => E() },
13
- label: { type: String, required: !0 },
14
- placeholder: String,
15
- modelValue: { type: String, default: "" },
16
- error: [String, Array],
17
- disabled: Boolean,
18
- validate: Object,
19
- lang: String,
20
- outputFormat: {
21
- type: String,
22
- default: "local-offset"
23
- // Jadikan 'local-offset' sebagai default
24
- }
25
- },
26
- emits: ["update:modelValue", "push:error", "remove:error"],
27
- setup(r, { emit: D }) {
28
- const e = r, y = C("TableComponents", {
29
- labels: v(H[e.lang ?? "en"])
30
- }).labels, j = D;
31
- function f(a) {
32
- if (!a) return "";
33
- if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(a))
34
- return a;
35
- if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(a))
36
- return a.substring(0, 16);
37
- try {
38
- const t = new Date(a);
39
- if (isNaN(t.getTime())) return "";
40
- const d = t.getFullYear(), s = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getDate().toString().padStart(2, "0"), i = t.getHours().toString().padStart(2, "0"), o = t.getMinutes().toString().padStart(2, "0");
41
- return `${d}-${s}-${n}T${i}:${o}`;
42
- } catch {
43
- return "";
44
- }
45
- }
46
- const $ = x(() => f(e.modelValue)), h = x(() => {
47
- if (e.validate) {
48
- const a = e.validate, t = [];
49
- return a.minDateTime && t.push(b("dateTimeMin", { min: a.minDateTime }, e.lang ?? "en")), a.maxDateTime && t.push(b("dateTimeMax", { max: a.maxDateTime }, e.lang ?? "en")), t.join(`
50
- `);
51
- }
52
- return "";
53
- }), l = v([]);
54
- N(
55
- () => ({
56
- val: e.modelValue,
57
- disabled: e.disabled,
58
- validate: e.validate
59
- }),
60
- ({ val: a, disabled: t, validate: d }) => {
61
- if (t) {
62
- l.value = [];
63
- return;
64
- }
65
- const s = [], n = f(a);
66
- if (d) {
67
- const { minDateTime: i, maxDateTime: o } = d;
68
- if (n) {
69
- const g = i ? f(i) : void 0, c = o ? f(o) : void 0;
70
- g && n < g && s.push(b("dateTimeMin", { min: String(g) }, e.lang ?? "en")), c && n > c && s.push(b("dateTimeMax", { max: String(c) }, e.lang ?? "en"));
71
- }
72
- }
73
- l.value = s, s.length ? j("push:error", s, e.id) : j("remove:error", e.id);
74
- },
75
- { deep: !0, immediate: !0 }
76
- );
77
- const M = x(
78
- () => e.placeholder ?? y?.value?.placeholder?.datetime ?? ""
79
- );
80
- function V(a) {
81
- if (e.disabled) return;
82
- const d = a.target.value;
83
- if (!d) {
84
- j("update:modelValue", "", e.id);
85
- return;
86
- }
87
- const s = `${d}:00`, n = new Date(s);
88
- let i = "";
89
- if (e.outputFormat === "utc")
90
- i = n.toISOString();
91
- else {
92
- const o = n.getTimezoneOffset(), g = Math.abs(o / 60), c = Math.abs(o % 60), I = `${o > 0 ? "-" : "+"}${String(g).padStart(2, "0")}:${String(c).padStart(2, "0")}`;
93
- i = `${s}${I}`;
94
- }
95
- j("update:modelValue", i, e.id);
96
- }
97
- return (a, t) => (u(), p("div", q, [
98
- m("label", {
99
- for: r.id,
100
- class: T(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100", { "jsgd-text-red-500 dark:jsgd-text-red-400": l.value.length || r.error }])
101
- }, [
102
- w(k(r.label) + " ", 1),
103
- h.value ? (u(), B(F(U), {
104
- key: 0,
105
- text: h.value,
106
- as: "strong"
107
- }, {
108
- default: z(() => [...t[0] || (t[0] = [
109
- w(" ❓", -1)
110
- ])]),
111
- _: 1
112
- }, 8, ["text"])) : S("", !0)
113
- ], 10, A),
114
- m("div", P, [
115
- t[1] || (t[1] = m("div", { class: "jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400" }, [
116
- m("span", { class: "jsgd-i-mdi-calendar-clock jsgd-w-5 jsgd-h-5" })
117
- ], -1)),
118
- m("input", {
119
- id: r.id,
120
- type: "datetime-local",
121
- value: $.value,
122
- disabled: r.disabled,
123
- min: e.validate?.minDateTime,
124
- max: e.validate?.maxDateTime,
125
- onInput: V,
126
- placeholder: M.value,
127
- class: T(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6", {
128
- "jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25": l.value.length || r.error
129
- }])
130
- }, null, 42, Y)
131
- ]),
132
- (u(!0), p(L, null, O(l.value, (d, s) => (u(), p("p", {
133
- key: s,
134
- class: "jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"
135
- }, k(d), 1))), 128)),
136
- typeof e.error == "string" && l.value.length === 0 ? (u(), p("p", G, k(r.error), 1)) : S("", !0)
137
- ]));
138
- }
139
- });
140
- export {
141
- ee as _
142
- };
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("vue"),g=require("./resize-DsxsWx52.cjs.js");require("dompurify");require("lodash.isequal");require("zod");const T={class:"jsgd-w-full jsgd-relative jsgd-mb-4"},D=["for"],y={class:"jsgd-relative"},w=["id","value","disabled","min","max","placeholder"],V={key:0,class:"jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},M=e.defineComponent({__name:"DateTimeInput",props:{id:{type:String,default:()=>g.setUID()},label:{type:String,required:!0},placeholder:String,modelValue:{type:String,default:""},error:[String,Array],disabled:Boolean,validate:Object,lang:String,outputFormat:{type:String,default:"local-offset"}},emits:["update:modelValue","push:error","remove:error"],setup(n,{emit:b}){const t=n,k=e.inject("TableComponents",{labels:e.ref(g.defaultTextLabelsMap[t.lang??"en"])}).labels,j=b;function f(s){if(!s)return"";if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(s))return s;if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/.test(s))return s.substring(0,16);try{const a=new Date(s);if(isNaN(a.getTime()))return"";const r=a.getFullYear(),d=(a.getMonth()+1).toString().padStart(2,"0"),i=a.getDate().toString().padStart(2,"0"),o=a.getHours().toString().padStart(2,"0"),l=a.getMinutes().toString().padStart(2,"0");return`${r}-${d}-${i}T${o}:${l}`}catch{return""}}const x=e.computed(()=>f(t.modelValue)),p=e.computed(()=>{if(t.validate){const s=t.validate,a=[];return s.minDateTime&&a.push(g.getMessage("dateTimeMin",{min:s.minDateTime},t.lang??"en")),s.maxDateTime&&a.push(g.getMessage("dateTimeMax",{max:s.maxDateTime},t.lang??"en")),a.join(`
2
- `)}return""}),c=e.ref([]);e.watch(()=>({val:t.modelValue,disabled:t.disabled,validate:t.validate}),({val:s,disabled:a,validate:r})=>{if(a){c.value=[];return}const d=[],i=f(s);if(r){const{minDateTime:o,maxDateTime:l}=r;if(i){const u=o?f(o):void 0,m=l?f(l):void 0;u&&i<u&&d.push(g.getMessage("dateTimeMin",{min:String(u)},t.lang??"en")),m&&i>m&&d.push(g.getMessage("dateTimeMax",{max:String(m)},t.lang??"en"))}}c.value=d,d.length?j("push:error",d,t.id):j("remove:error",t.id)},{deep:!0,immediate:!0});const v=e.computed(()=>t.placeholder??k?.value?.placeholder?.datetime??"");function h(s){if(t.disabled)return;const r=s.target.value;if(!r){j("update:modelValue","",t.id);return}const d=`${r}:00`,i=new Date(d);let o="";if(t.outputFormat==="utc")o=i.toISOString();else{const l=i.getTimezoneOffset(),u=Math.abs(l/60),m=Math.abs(l%60),S=`${l>0?"-":"+"}${String(u).padStart(2,"0")}:${String(m).padStart(2,"0")}`;o=`${d}${S}`}j("update:modelValue",o,t.id)}return(s,a)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("label",{for:n.id,class:e.normalizeClass(["jsgd-inline-flex jsgd-items-center jsgd-gap-2 jsgd-text-sm jsgd-font-medium jsgd-mb-2 jsgd-text-slate-900 jsgd-transition-colors jsgd-duration-200 dark:jsgd-text-slate-100",{"jsgd-text-red-500 dark:jsgd-text-red-400":c.value.length||n.error}])},[e.createTextVNode(e.toDisplayString(n.label)+" ",1),p.value?(e.openBlock(),e.createBlock(e.unref(g._sfc_main$1),{key:0,text:p.value,as:"strong"},{default:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode(" ❓",-1)])]),_:1},8,["text"])):e.createCommentVNode("",!0)],10,D),e.createElementVNode("div",y,[a[1]||(a[1]=e.createElementVNode("div",{class:"jsgd-absolute jsgd-right-3 jsgd-top-1/2 -jsgd-translate-y-1/2 jsgd-pointer-events-none jsgd-text-slate-500 dark:jsgd-text-slate-400"},[e.createElementVNode("span",{class:"jsgd-i-mdi-calendar-clock jsgd-w-5 jsgd-h-5"})],-1)),e.createElementVNode("input",{id:n.id,type:"datetime-local",value:x.value,disabled:n.disabled,min:t.validate?.minDateTime,max:t.validate?.maxDateTime,onInput:h,placeholder:v.value,class:e.normalizeClass(["jsgd-w-full jsgd-py-3 jsgd-px-4 jsgd-text-base jsgd-text-slate-900 jsgd-bg-white jsgd-border-1 jsgd-border-solid jsgd-border-slate-300 jsgd-rounded-lg jsgd-transition-all jsgd-duration-200 jsgd-box-border jsgd-appearance-none focus:jsgd-outline-none focus:jsgd-border-blue-500 focus:jsgd-ring-4 focus:jsgd-ring-blue-500/20 disabled:jsgd-bg-slate-100 disabled:jsgd-text-slate-500 disabled:jsgd-cursor-not-allowed dark:jsgd-bg-slate-800 dark:jsgd-text-slate-100 dark:jsgd-border-slate-600 dark:focus:jsgd-border-blue-400 dark:focus:jsgd-ring-blue-400/25 dark:disabled:jsgd-bg-slate-700 [color-scheme:light_dark] [&::-webkit-calendar-picker-indicator]:jsgd-opacity-0 [&::-webkit-calendar-picker-indicator]:jsgd-cursor-pointer [&::-webkit-calendar-picker-indicator]:jsgd-absolute [&::-webkit-calendar-picker-indicator]:jsgd-right-3 [&::-webkit-calendar-picker-indicator]:jsgd-top-1/2 [&::-webkit-calendar-picker-indicator]:-jsgd-translate-y-1/2 [&::-webkit-calendar-picker-indicator]:jsgd-w-6 [&::-webkit-calendar-picker-indicator]:jsgd-h-6",{"jsgd-border-red-400 focus:jsgd-ring-red-500/20 dark:jsgd-border-red-400 dark:focus:jsgd-ring-red-400/25":c.value.length||n.error}])},null,42,w)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(r,d)=>(e.openBlock(),e.createElementBlock("p",{key:d,class:"jsgd-text-sm jsgd-text-red-500 jsgd-mt-2 jsgd-animate-[fadeIn_300ms_ease-out] dark:jsgd-text-red-400"},e.toDisplayString(r),1))),128)),typeof t.error=="string"&&c.value.length===0?(e.openBlock(),e.createElementBlock("p",V,e.toDisplayString(n.error),1)):e.createCommentVNode("",!0)]))}});exports._sfc_main=M;
@@ -1,4 +0,0 @@
1
- import { h as f } from "./resize-2N3sqejU.es.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main$8;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileArrayInput.vue_vue_type_script_setup_true_lang-DtC-rygi.cjs.js");require("./resize-DsxsWx52.cjs.js");exports.default=e._sfc_main;
@@ -1,5 +0,0 @@
1
- import { _ as m } from "./FileArrayInput.vue_vue_type_script_setup_true_lang-C7UCpQqG.es.js";
2
- import "./resize-2N3sqejU.es.js";
3
- export {
4
- m as default
5
- };