@kiva/kv-components 8.13.3 → 8.14.0

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 +1 @@
1
- .kv-datepicker__loading{padding:20px;text-align:center;color:var(--text-secondary)}.kv-datepicker .dp__input{font-family:inherit;font-weight:inherit;height:3rem}.kv-datepicker .dp__input:focus-within,.kv-datepicker .dp__input:focus-visible{border-color:rgb(var(--bg-action));border-width:2px;outline:none}.kv-datepicker .dp__disabled{color:rgb(var(--text-tertiary))}.kv-datepicker .dp__theme_light{--dp-primary-color: rgb(var(--bg-primary-inverse));--dp-secondary-color: rgb(var(--bg-tertiary));--dp-icon-color: rgb(var(--bg-action));--dp-hover-icon-color: rgb(var(--bg-action));--dp-border-radius: .25rem;--dp-border-color-focus: rgb(var(--bg-action-highlight));--dp-font-family: inherit, "Postgrotesk", sans-serif;--dp-primary-text-color: rgb(var(--text-primary-inverse));--dp-border-color: rgb(var(--bg-tertiary));--dp-hover-color: rgb(var(--bg-tertiary));--dp-background-color: rgb(var(--bg-primary));--dp-text-color: rgb(var(--text-primary));--dp-menu-border-color: rgb(var(--bg-primary-inverse));--dp-disabled-color: rgb(var(--bg-tertiary), 25%);--dp-disabled-color-text: rgb(var(--bg-tertiary));--dp-success-color: rgb(var(--bg-action));--dp-danger-color: rgb(var(--bg-danger));--dp-highlight-color: rgb(var(--bg-action));--dp-cell-border-radius: .25rem;--dp-loader: rgb(var(--bg-action));--dp-range-between-dates-background-color: rgb(var(--bg-action));--dp-range-between-dates-text-color: rgb(var(--bg-primary));--dp-range-between-border-color: rgb(var(--bg-action))}
1
+ .kv-datepicker .dp__input{font-family:inherit;font-weight:inherit;height:3rem}.kv-datepicker .dp__input:focus-within,.kv-datepicker .dp__input:focus-visible{border-color:rgb(var(--bg-action));border-width:2px;outline:none}.kv-datepicker .dp__disabled{color:rgb(var(--text-tertiary))}.kv-datepicker .dp__theme_light{--dp-primary-color: rgb(var(--bg-primary-inverse));--dp-secondary-color: rgb(var(--bg-tertiary));--dp-icon-color: rgb(var(--bg-action));--dp-hover-icon-color: rgb(var(--bg-action));--dp-border-radius: .25rem;--dp-border-color-focus: rgb(var(--bg-action-highlight));--dp-font-family: inherit, "Postgrotesk", sans-serif;--dp-primary-text-color: rgb(var(--text-primary-inverse));--dp-border-color: rgb(var(--bg-tertiary));--dp-hover-color: rgb(var(--bg-tertiary));--dp-background-color: rgb(var(--bg-primary));--dp-text-color: rgb(var(--text-primary));--dp-menu-border-color: rgb(var(--bg-primary-inverse));--dp-disabled-color: rgb(var(--bg-tertiary), 25%);--dp-disabled-color-text: rgb(var(--bg-tertiary));--dp-success-color: rgb(var(--bg-action));--dp-danger-color: rgb(var(--bg-danger));--dp-highlight-color: rgb(var(--bg-action));--dp-cell-border-radius: .25rem;--dp-loader: rgb(var(--bg-action));--dp-range-between-dates-background-color: rgb(var(--bg-action));--dp-range-between-dates-text-color: rgb(var(--bg-primary));--dp-range-between-border-color: rgb(var(--bg-action))}
@@ -1,37 +1,30 @@
1
- import i from "./KvDatePicker2.js";
2
- import { resolveComponent as s, openBlock as t, createBlock as n, withCtx as _, createElementVNode as k, normalizeClass as v, createElementBlock as r, resolveDynamicComponent as u, mergeProps as h } from "vue";
1
+ import s from "./KvDatePicker2.js";
2
+ import { resolveComponent as o, openBlock as i, createBlock as _, withCtx as u, createElementVNode as r, normalizeClass as v, createVNode as k, mergeProps as f } from "vue";
3
3
  import "./KvDatePicker.css";
4
- import f from "../_virtual/_plugin-vue_export-helper.js";
5
- const y = {
6
- key: 0,
7
- class: "kv-datepicker__content"
8
- }, C = {
9
- key: 1,
10
- class: "kv-datepicker__loading"
11
- };
12
- function V(l, o, m, a, e, c) {
13
- const d = s("kv-theme-provider");
14
- return t(), n(d, { theme: a.themeStyle }, {
15
- default: _(() => [
16
- k("div", {
17
- class: v(["kv-datepicker", m.theme])
4
+ import h from "../_virtual/_plugin-vue_export-helper.js";
5
+ const V = { class: "kv-datepicker__content" };
6
+ function C(a, e, l, n, t, d) {
7
+ const m = o("vue-date-picker"), c = o("kv-theme-provider");
8
+ return i(), _(c, { theme: n.themeStyle }, {
9
+ default: u(() => [
10
+ r("div", {
11
+ class: v(["kv-datepicker", l.theme])
18
12
  }, [
19
- e.datepickerComponent ? (t(), r("div", y, [
20
- (t(), n(u(e.datepickerComponent), h({
21
- key: e.componentKey,
22
- modelValue: e.selectedDate,
23
- "onUpdate:modelValue": o[0] || (o[0] = (p) => e.selectedDate = p)
24
- }, l.$attrs, {
13
+ r("div", V, [
14
+ k(m, f({
15
+ modelValue: t.selectedDate,
16
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => t.selectedDate = p)
17
+ }, a.$attrs, {
25
18
  "auto-apply": !0,
26
- "onUpdate:modelValue": c.handleDateChange
27
- }), null, 16, ["modelValue", "onUpdate:modelValue"]))
28
- ])) : (t(), r("div", C, " Loading... "))
19
+ "onUpdate:modelValue": d.handleDateChange
20
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])
21
+ ])
29
22
  ], 2)
30
23
  ]),
31
24
  _: 1
32
25
  }, 8, ["theme"]);
33
26
  }
34
- const U = /* @__PURE__ */ f(i, [["render", V]]);
27
+ const y = /* @__PURE__ */ h(s, [["render", C]]);
35
28
  export {
36
- U as default
29
+ y as default
37
30
  };
@@ -11,12 +11,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  }>, {
12
12
  themeStyle: import('vue').ComputedRef<any>;
13
13
  }, {
14
- datepickerComponent: any;
15
- datepickerPromise: any;
16
14
  selectedDate: any;
17
- componentKey: number;
18
15
  }, {}, {
19
- loadDatepicker(): Promise<any>;
20
16
  handleDateChange(value: any): void;
21
17
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
18
  modelValue: {
@@ -54,5 +50,104 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
54
50
  theme: Record<string, any>;
55
51
  tag: string;
56
52
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
+ VueDatePicker: {
54
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<string[]> | import('vue').ExtractPropTypes<import('vue').ComponentObjectPropsOptions<import('@vuepic/vue-datepicker').VueDatePickerProps>>> & {
55
+ onFocus?: (...args: any[]) => any;
56
+ onBlur?: (...args: any[]) => any;
57
+ onOpen?: (...args: any[]) => any;
58
+ "onUpdate:model-value"?: (...args: any[]) => any;
59
+ "onUpdate:model-timezone-value"?: (...args: any[]) => any;
60
+ "onText-submit"?: (...args: any[]) => any;
61
+ onClosed?: (...args: any[]) => any;
62
+ onCleared?: (...args: any[]) => any;
63
+ "onInternal-model-change"?: (...args: any[]) => any;
64
+ "onRecalculate-position"?: (...args: any[]) => any;
65
+ "onFlow-step"?: (...args: any[]) => any;
66
+ "onUpdate-month-year"?: (...args: any[]) => any;
67
+ "onInvalid-select"?: (...args: any[]) => any;
68
+ "onTooltip-open"?: (...args: any[]) => any;
69
+ "onTooltip-close"?: (...args: any[]) => any;
70
+ "onInvalid-fixed-range"?: (...args: any[]) => any;
71
+ "onTime-picker-open"?: (...args: any[]) => any;
72
+ "onTime-picker-close"?: (...args: any[]) => any;
73
+ "onAm-pm-change"?: (...args: any[]) => any;
74
+ "onRange-start"?: (...args: any[]) => any;
75
+ "onRange-end"?: (...args: any[]) => any;
76
+ "onDate-update"?: (...args: any[]) => any;
77
+ "onInvalid-date"?: (...args: any[]) => any;
78
+ "onOverlay-toggle"?: (...args: any[]) => any;
79
+ "onText-input"?: (...args: any[]) => any;
80
+ }, {}, {}, import('vue').ComputedOptions, import('@vuepic/vue-datepicker').PublicMethods, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('@vuepic/vue-datepicker').EmitEvents[], import('@vuepic/vue-datepicker').VueDatePickerProps, {
81
+ [x: number]: string;
82
+ } | {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
83
+ P: {};
84
+ B: {};
85
+ D: {};
86
+ C: {};
87
+ M: {};
88
+ Defaults: {};
89
+ }, {} & (Readonly<import('vue').ExtractPropTypes<string[]> | import('vue').ExtractPropTypes<import('vue').ComponentObjectPropsOptions<import('@vuepic/vue-datepicker').VueDatePickerProps>>> & {
90
+ onFocus?: (...args: any[]) => any;
91
+ onBlur?: (...args: any[]) => any;
92
+ onOpen?: (...args: any[]) => any;
93
+ "onUpdate:model-value"?: (...args: any[]) => any;
94
+ "onUpdate:model-timezone-value"?: (...args: any[]) => any;
95
+ "onText-submit"?: (...args: any[]) => any;
96
+ onClosed?: (...args: any[]) => any;
97
+ onCleared?: (...args: any[]) => any;
98
+ "onInternal-model-change"?: (...args: any[]) => any;
99
+ "onRecalculate-position"?: (...args: any[]) => any;
100
+ "onFlow-step"?: (...args: any[]) => any;
101
+ "onUpdate-month-year"?: (...args: any[]) => any;
102
+ "onInvalid-select"?: (...args: any[]) => any;
103
+ "onTooltip-open"?: (...args: any[]) => any;
104
+ "onTooltip-close"?: (...args: any[]) => any;
105
+ "onInvalid-fixed-range"?: (...args: any[]) => any;
106
+ "onTime-picker-open"?: (...args: any[]) => any;
107
+ "onTime-picker-close"?: (...args: any[]) => any;
108
+ "onAm-pm-change"?: (...args: any[]) => any;
109
+ "onRange-start"?: (...args: any[]) => any;
110
+ "onRange-end"?: (...args: any[]) => any;
111
+ "onDate-update"?: (...args: any[]) => any;
112
+ "onInvalid-date"?: (...args: any[]) => any;
113
+ "onOverlay-toggle"?: (...args: any[]) => any;
114
+ "onText-input"?: (...args: any[]) => any;
115
+ }), {}, {}, import('vue').ComputedOptions, import('@vuepic/vue-datepicker').PublicMethods, {
116
+ [x: number]: string;
117
+ } | {}>;
118
+ __isFragment?: never;
119
+ __isTeleport?: never;
120
+ __isSuspense?: never;
121
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<string[]> | import('vue').ExtractPropTypes<import('vue').ComponentObjectPropsOptions<import('@vuepic/vue-datepicker').VueDatePickerProps>>> & {
122
+ onFocus?: (...args: any[]) => any;
123
+ onBlur?: (...args: any[]) => any;
124
+ onOpen?: (...args: any[]) => any;
125
+ "onUpdate:model-value"?: (...args: any[]) => any;
126
+ "onUpdate:model-timezone-value"?: (...args: any[]) => any;
127
+ "onText-submit"?: (...args: any[]) => any;
128
+ onClosed?: (...args: any[]) => any;
129
+ onCleared?: (...args: any[]) => any;
130
+ "onInternal-model-change"?: (...args: any[]) => any;
131
+ "onRecalculate-position"?: (...args: any[]) => any;
132
+ "onFlow-step"?: (...args: any[]) => any;
133
+ "onUpdate-month-year"?: (...args: any[]) => any;
134
+ "onInvalid-select"?: (...args: any[]) => any;
135
+ "onTooltip-open"?: (...args: any[]) => any;
136
+ "onTooltip-close"?: (...args: any[]) => any;
137
+ "onInvalid-fixed-range"?: (...args: any[]) => any;
138
+ "onTime-picker-open"?: (...args: any[]) => any;
139
+ "onTime-picker-close"?: (...args: any[]) => any;
140
+ "onAm-pm-change"?: (...args: any[]) => any;
141
+ "onRange-start"?: (...args: any[]) => any;
142
+ "onRange-end"?: (...args: any[]) => any;
143
+ "onDate-update"?: (...args: any[]) => any;
144
+ "onInvalid-date"?: (...args: any[]) => any;
145
+ "onOverlay-toggle"?: (...args: any[]) => any;
146
+ "onText-input"?: (...args: any[]) => any;
147
+ }, {}, {}, import('vue').ComputedOptions, import('@vuepic/vue-datepicker').PublicMethods, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('@vuepic/vue-datepicker').EmitEvents[], import('@vuepic/vue-datepicker').EmitEvents, {
148
+ [x: number]: string;
149
+ } | {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('@vuepic/vue-datepicker').VueDatePickerProps & (new () => {
150
+ $slots: Readonly<import('@vuepic/vue-datepicker').Slots> & import('@vuepic/vue-datepicker').Slots;
151
+ });
57
152
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
58
153
  export default _default;
@@ -1,10 +1,13 @@
1
- import { computed as r, markRaw as a } from "vue";
2
- import { defaultTheme as t, stoneDarkTheme as i, stoneLightTheme as n, marigoldLightTheme as m, greenLightTheme as o, greenDarkTheme as s } from "@kiva/kv-tokens";
3
- import h from "./KvThemeProvider.js";
1
+ import { computed as r } from "vue";
2
+ import a from "@vuepic/vue-datepicker";
3
+ import "@vuepic/vue-datepicker/dist/main.css";
4
+ import { defaultTheme as t, stoneDarkTheme as n, stoneLightTheme as i, marigoldLightTheme as m, greenLightTheme as h, greenDarkTheme as o } from "@kiva/kv-tokens";
5
+ import s from "./KvThemeProvider.js";
4
6
  const p = {
5
7
  name: "KvDatePicker",
6
8
  components: {
7
- KvThemeProvider: h
9
+ KvThemeProvider: s,
10
+ VueDatePicker: a
8
11
  },
9
12
  inheritAttrs: !1,
10
13
  props: {
@@ -33,15 +36,15 @@ const p = {
33
36
  case "default":
34
37
  return t;
35
38
  case "greenDark":
36
- return s;
37
- case "greenLight":
38
39
  return o;
40
+ case "greenLight":
41
+ return h;
39
42
  case "marigoldLight":
40
43
  return m;
41
44
  case "stoneLight":
42
- return n;
43
- case "stoneDark":
44
45
  return i;
46
+ case "stoneDark":
47
+ return n;
45
48
  default:
46
49
  return t;
47
50
  }
@@ -49,10 +52,7 @@ const p = {
49
52
  },
50
53
  data() {
51
54
  return {
52
- datepickerComponent: null,
53
- datepickerPromise: null,
54
- selectedDate: null,
55
- componentKey: 0
55
+ selectedDate: null
56
56
  };
57
57
  },
58
58
  watch: {
@@ -63,19 +63,7 @@ const p = {
63
63
  immediate: !0
64
64
  }
65
65
  },
66
- mounted() {
67
- this.loadDatepicker();
68
- },
69
66
  methods: {
70
- async loadDatepicker() {
71
- if (!this.datepickerComponent)
72
- return this.datepickerPromise ? this.datepickerPromise : (this.datepickerPromise = Promise.all([
73
- import("@vuepic/vue-datepicker"),
74
- import("@vuepic/vue-datepicker/dist/main.css")
75
- ]).then(async ([e]) => {
76
- this.datepickerComponent = a(e.default), await this.$nextTick();
77
- }), this.datepickerPromise);
78
- },
79
67
  handleDateChange(e) {
80
68
  this.selectedDate = e, this.$emit("update:model-value", e), this.$emit("change", e);
81
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.13.3",
3
+ "version": "8.14.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -125,5 +125,5 @@
125
125
  "embla-carousel-fade",
126
126
  "popper.js"
127
127
  ],
128
- "gitHead": "351df7e5ef5fcaff1a4f99394321c549da15a435"
128
+ "gitHead": "58534a3e0cac0cb884d0be1a66d3375201135c72"
129
129
  }