@quoreadmin/ui 1.6.5 → 1.6.6

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 (115) hide show
  1. package/dist/index15.js +19 -19
  2. package/dist/index174.js +4 -4
  3. package/dist/index181.js +8 -8
  4. package/dist/index183.js +8 -8
  5. package/dist/index190.js +26 -26
  6. package/dist/index191.js +1 -1
  7. package/dist/index192.js +1 -1
  8. package/dist/index195.js +2 -2
  9. package/dist/index197.js +14 -14
  10. package/dist/index198.js +1 -1
  11. package/dist/index199.js +1 -1
  12. package/dist/index200.js +3 -3
  13. package/dist/index201.js +2 -2
  14. package/dist/index216.js +2 -2
  15. package/dist/index217.js +2 -2
  16. package/dist/index218.js +1 -1
  17. package/dist/index219.js +160 -21
  18. package/dist/index220.js +228 -22
  19. package/dist/index221.js +36 -19
  20. package/dist/index222.js +9 -835
  21. package/dist/index223.js +104 -679
  22. package/dist/index224.js +36 -174
  23. package/dist/index225.js +80 -20
  24. package/dist/index226.js +12 -12
  25. package/dist/index227.js +12 -14
  26. package/dist/index228.js +10 -10
  27. package/dist/index229.js +11 -11
  28. package/dist/index230.js +9 -9
  29. package/dist/index231.js +161 -3
  30. package/dist/index232.js +19 -186
  31. package/dist/index233.js +21 -132
  32. package/dist/index234.js +167 -129
  33. package/dist/index235.js +46 -1199
  34. package/dist/index236.js +31 -124
  35. package/dist/index237.js +39 -19
  36. package/dist/index238.js +11 -11
  37. package/dist/index239.js +13 -11
  38. package/dist/index240.js +11 -13
  39. package/dist/index241.js +819 -21
  40. package/dist/index242.js +701 -28
  41. package/dist/index243.js +176 -20
  42. package/dist/index244.js +14 -12
  43. package/dist/index245.js +20 -2
  44. package/dist/index246.js +20 -2
  45. package/dist/index247.js +3 -22
  46. package/dist/index248.js +155 -167
  47. package/dist/index249.js +112 -49
  48. package/dist/index250.js +1223 -34
  49. package/dist/index251.js +19 -39
  50. package/dist/index252.js +21 -160
  51. package/dist/index253.js +22 -228
  52. package/dist/index254.js +28 -36
  53. package/dist/index255.js +20 -10
  54. package/dist/index256.js +20 -253
  55. package/dist/index257.js +2 -8
  56. package/dist/index258.js +2 -138
  57. package/dist/index259.js +3621 -72
  58. package/dist/index260.js +39 -3616
  59. package/dist/index261.js +52 -30
  60. package/dist/index262.js +22 -47
  61. package/dist/index263.js +188 -25
  62. package/dist/index264.js +8 -213
  63. package/dist/index265.js +56 -9
  64. package/dist/index266.js +45 -41
  65. package/dist/index267.js +39 -46
  66. package/dist/index268.js +57 -36
  67. package/dist/index269.js +689 -41
  68. package/dist/index270.js +21 -705
  69. package/dist/index271.js +47 -22
  70. package/dist/index272.js +10 -63
  71. package/dist/index273.js +704 -10
  72. package/dist/index274.js +770 -655
  73. package/dist/index275.js +234 -801
  74. package/dist/index276.js +7 -79
  75. package/dist/index277.js +138 -20
  76. package/dist/index278.js +83 -20
  77. package/dist/index281.js +2 -79
  78. package/dist/index282.js +71 -71
  79. package/dist/index283.js +53 -21
  80. package/dist/index284.js +26 -935
  81. package/dist/index285.js +12 -12
  82. package/dist/index286.js +15 -13
  83. package/dist/index287.js +16 -20
  84. package/dist/index288.js +16 -68
  85. package/dist/index289.js +19 -15
  86. package/dist/index290.js +76 -16
  87. package/dist/index291.js +21 -53
  88. package/dist/index292.js +935 -22
  89. package/dist/index293.js +11 -11
  90. package/dist/index294.js +19 -62
  91. package/dist/index295.js +20 -2
  92. package/dist/index296.js +68 -25
  93. package/dist/index297.js +19 -22
  94. package/dist/index298.js +19 -22
  95. package/dist/index299.js +22 -16
  96. package/dist/index300.js +22 -17
  97. package/dist/index301.js +61 -21
  98. package/dist/index303.js +1 -1
  99. package/dist/index306.js +1 -1
  100. package/dist/index307.js +1 -1
  101. package/dist/index309.js +1 -1
  102. package/dist/index310.js +1 -1
  103. package/dist/index311.js +1 -1
  104. package/dist/index352.js +1 -1
  105. package/dist/index353.js +1 -1
  106. package/dist/index354.js +1 -1
  107. package/dist/index356.js +1 -1
  108. package/dist/index369.js +1 -1
  109. package/dist/index85.js +21 -17
  110. package/dist/src/components/data-filter/data-filter.d.ts +9 -0
  111. package/dist/src/components/data-list/data-list.d.ts +9 -0
  112. package/dist/src/components/grid/grid.stories.d.ts +9 -0
  113. package/dist/src/views/lists.vue.d.ts +18 -0
  114. package/dist/src/views/tables.vue.d.ts +9 -0
  115. package/package.json +1 -1
package/dist/index234.js CHANGED
@@ -1,163 +1,201 @@
1
- import y from "./index251.js";
2
- import m from "./index221.js";
3
- import b from "./index216.js";
4
- import v from "./index217.js";
5
- import h from "./index291.js";
6
- import { resolveComponent as r, resolveDirective as S, withDirectives as B, createElementBlock as i, openBlock as n, mergeProps as t, renderSlot as o, createElementVNode as I, createBlock as d, createCommentVNode as p, normalizeClass as u, toDisplayString as $ } from "vue";
7
- var k = {
8
- name: "BaseButton",
9
- extends: v,
1
+ import f from "./index245.js";
2
+ import y from "./index284.js";
3
+ import b from "./index285.js";
4
+ import P from "./index226.js";
5
+ import d from "./index286.js";
6
+ import S from "./index216.js";
7
+ import $ from "./index217.js";
8
+ import C from "./index287.js";
9
+ import { resolveComponent as j, resolveDirective as k, createBlock as p, openBlock as s, Transition as D, mergeProps as n, withCtx as B, withDirectives as v, createElementVNode as g, renderSlot as a, createElementBlock as m, createCommentVNode as A, resolveDynamicComponent as T, vShow as E } from "vue";
10
+ var N = {
11
+ name: "BaseMessage",
12
+ extends: $,
10
13
  props: {
11
- label: {
12
- type: String,
13
- default: null
14
- },
15
- icon: {
16
- type: String,
17
- default: null
18
- },
19
- iconPos: {
20
- type: String,
21
- default: "left"
22
- },
23
- iconClass: {
24
- type: String,
25
- default: null
26
- },
27
- badge: {
28
- type: String,
29
- default: null
30
- },
31
- badgeClass: {
32
- type: String,
33
- default: null
34
- },
35
- badgeSeverity: {
36
- type: String,
37
- default: null
38
- },
39
- loading: {
40
- type: Boolean,
41
- default: !1
42
- },
43
- loadingIcon: {
44
- type: String,
45
- default: void 0
46
- },
47
- link: {
48
- type: Boolean,
49
- default: !1
50
- },
51
14
  severity: {
52
15
  type: String,
53
- default: null
16
+ default: "info"
54
17
  },
55
- raised: {
18
+ closable: {
56
19
  type: Boolean,
57
- default: !1
20
+ default: !0
58
21
  },
59
- rounded: {
22
+ sticky: {
60
23
  type: Boolean,
61
- default: !1
24
+ default: !0
62
25
  },
63
- text: {
64
- type: Boolean,
65
- default: !1
26
+ life: {
27
+ type: Number,
28
+ default: 3e3
66
29
  },
67
- outlined: {
68
- type: Boolean,
69
- default: !1
30
+ icon: {
31
+ type: String,
32
+ default: void 0
70
33
  },
71
- size: {
34
+ closeIcon: {
72
35
  type: String,
73
- default: null
36
+ default: void 0
74
37
  },
75
- plain: {
76
- type: Boolean,
77
- default: !1
38
+ closeButtonProps: {
39
+ type: null,
40
+ default: null
78
41
  }
79
42
  },
80
- style: h,
43
+ style: C,
81
44
  provide: function() {
82
45
  return {
83
46
  $parentInstance: this
84
47
  };
85
48
  }
86
- }, C = {
87
- name: "Button",
88
- extends: k,
49
+ }, L = {
50
+ name: "Message",
51
+ extends: N,
89
52
  inheritAttrs: !1,
53
+ emits: ["close", "life-end"],
54
+ timeout: null,
55
+ data: function() {
56
+ return {
57
+ visible: !0
58
+ };
59
+ },
60
+ watch: {
61
+ sticky: function(t) {
62
+ t || this.closeAfterDelay();
63
+ }
64
+ },
65
+ mounted: function() {
66
+ this.sticky || this.closeAfterDelay();
67
+ },
90
68
  methods: {
91
- getPTOptions: function(l) {
92
- var s = l === "root" ? this.ptmi : this.ptm;
93
- return s(l, {
94
- context: {
95
- disabled: this.disabled
96
- }
97
- });
69
+ close: function(t) {
70
+ this.visible = !1, this.$emit("close", t);
71
+ },
72
+ closeAfterDelay: function() {
73
+ var t = this;
74
+ setTimeout(function() {
75
+ t.visible = !1, t.$emit("life-end");
76
+ }, this.life);
98
77
  }
99
78
  },
100
79
  computed: {
101
- disabled: function() {
102
- return this.$attrs.disabled || this.$attrs.disabled === "" || this.loading;
103
- },
104
- defaultAriaLabel: function() {
105
- return this.label ? this.label + (this.badge ? " " + this.badge : "") : this.$attrs.ariaLabel;
106
- },
107
- hasIcon: function() {
108
- return this.icon || this.$slots.icon;
80
+ iconComponent: function() {
81
+ return {
82
+ info: b,
83
+ success: f,
84
+ warn: y,
85
+ error: d
86
+ }[this.severity];
87
+ },
88
+ closeAriaLabel: function() {
89
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : void 0;
109
90
  }
110
91
  },
111
- components: {
112
- SpinnerIcon: m,
113
- Badge: y
114
- },
115
92
  directives: {
116
- ripple: b
93
+ ripple: S
94
+ },
95
+ components: {
96
+ TimesIcon: P,
97
+ InfoCircleIcon: b,
98
+ CheckIcon: f,
99
+ ExclamationTriangleIcon: y,
100
+ TimesCircleIcon: d
101
+ }
102
+ };
103
+ function c(e) {
104
+ "@babel/helpers - typeof";
105
+ return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
106
+ return typeof t;
107
+ } : function(t) {
108
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
109
+ }, c(e);
110
+ }
111
+ function h(e, t) {
112
+ var o = Object.keys(e);
113
+ if (Object.getOwnPropertySymbols) {
114
+ var r = Object.getOwnPropertySymbols(e);
115
+ t && (r = r.filter(function(u) {
116
+ return Object.getOwnPropertyDescriptor(e, u).enumerable;
117
+ })), o.push.apply(o, r);
117
118
  }
118
- }, P = ["aria-label", "disabled", "data-p-severity"];
119
- function A(e, l, s, L, D, a) {
120
- var c = r("SpinnerIcon"), f = r("Badge"), g = S("ripple");
121
- return B((n(), i("button", t({
122
- class: e.cx("root"),
123
- type: "button",
124
- "aria-label": a.defaultAriaLabel,
125
- disabled: a.disabled
126
- }, a.getPTOptions("root"), {
127
- "data-p-severity": e.severity
128
- }), [o(e.$slots, "default", {}, function() {
129
- return [e.loading ? o(e.$slots, "loadingicon", {
130
- key: 0,
131
- class: u([e.cx("loadingIcon"), e.cx("icon")])
132
- }, function() {
133
- return [e.loadingIcon ? (n(), i("span", t({
119
+ return o;
120
+ }
121
+ function i(e) {
122
+ for (var t = 1; t < arguments.length; t++) {
123
+ var o = arguments[t] != null ? arguments[t] : {};
124
+ t % 2 ? h(Object(o), !0).forEach(function(r) {
125
+ M(e, r, o[r]);
126
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : h(Object(o)).forEach(function(r) {
127
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
128
+ });
129
+ }
130
+ return e;
131
+ }
132
+ function M(e, t, o) {
133
+ return t = K(t), t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
134
+ }
135
+ function K(e) {
136
+ var t = V(e, "string");
137
+ return c(t) == "symbol" ? t : String(t);
138
+ }
139
+ function V(e, t) {
140
+ if (c(e) != "object" || !e) return e;
141
+ var o = e[Symbol.toPrimitive];
142
+ if (o !== void 0) {
143
+ var r = o.call(e, t);
144
+ if (c(r) != "object") return r;
145
+ throw new TypeError("@@toPrimitive must return a primitive value.");
146
+ }
147
+ return (t === "string" ? String : Number)(e);
148
+ }
149
+ var R = ["aria-label"];
150
+ function q(e, t, o, r, u, l) {
151
+ var I = j("TimesIcon"), O = k("ripple");
152
+ return s(), p(D, n({
153
+ name: "p-message",
154
+ appear: ""
155
+ }, e.ptmi("transition")), {
156
+ default: B(function() {
157
+ return [v(g("div", n({
158
+ class: e.cx("root"),
159
+ role: "alert",
160
+ "aria-live": "assertive",
161
+ "aria-atomic": "true"
162
+ }, e.ptm("root")), [e.$slots.container ? a(e.$slots, "container", {
134
163
  key: 0,
135
- class: [e.cx("loadingIcon"), e.cx("icon"), e.loadingIcon]
136
- }, e.ptm("loadingIcon")), null, 16)) : (n(), d(c, t({
164
+ onClose: l.close,
165
+ closeCallback: l.close
166
+ }) : (s(), m("div", n({
137
167
  key: 1,
138
- class: [e.cx("loadingIcon"), e.cx("icon")],
139
- spin: ""
140
- }, e.ptm("loadingIcon")), null, 16, ["class"]))];
141
- }) : o(e.$slots, "icon", {
142
- key: 1,
143
- class: u([e.cx("icon")])
144
- }, function() {
145
- return [e.icon ? (n(), i("span", t({
168
+ class: e.cx("wrapper")
169
+ }, e.ptm("wrapper")), [a(e.$slots, "messageicon", {
170
+ class: "p-message-icon"
171
+ }, function() {
172
+ return [(s(), p(T(e.icon ? "span" : l.iconComponent), n({
173
+ class: [e.cx("icon"), e.icon]
174
+ }, e.ptm("icon")), null, 16, ["class"]))];
175
+ }), g("div", n({
176
+ class: ["p-message-text", e.cx("text")]
177
+ }, e.ptm("text")), [a(e.$slots, "default")], 16), e.closable ? v((s(), m("button", n({
146
178
  key: 0,
147
- class: [e.cx("icon"), e.icon, e.iconClass]
148
- }, e.ptm("icon")), null, 16)) : p("", !0)];
149
- }), I("span", t({
150
- class: e.cx("label")
151
- }, e.ptm("label")), $(e.label || " "), 17), e.badge ? (n(), d(f, t({
152
- key: 2,
153
- value: e.badge,
154
- class: e.badgeClass,
155
- severity: e.badgeSeverity,
156
- unstyled: e.unstyled
157
- }, e.ptm("badge")), null, 16, ["value", "class", "severity", "unstyled"])) : p("", !0)];
158
- })], 16, P)), [[g]]);
179
+ class: e.cx("closeButton"),
180
+ "aria-label": l.closeAriaLabel,
181
+ type: "button",
182
+ onClick: t[0] || (t[0] = function(w) {
183
+ return l.close(w);
184
+ })
185
+ }, i(i(i({}, e.closeButtonProps), e.ptm("button")), e.ptm("closeButton"))), [a(e.$slots, "closeicon", {}, function() {
186
+ return [e.closeIcon ? (s(), m("i", n({
187
+ key: 0,
188
+ class: [e.cx("closeIcon"), e.closeIcon]
189
+ }, i(i({}, e.ptm("buttonIcon")), e.ptm("closeIcon"))), null, 16)) : (s(), p(I, n({
190
+ key: 1,
191
+ class: [e.cx("closeIcon"), e.closeIcon]
192
+ }, i(i({}, e.ptm("buttonIcon")), e.ptm("closeIcon"))), null, 16, ["class"]))];
193
+ })], 16, R)), [[O]]) : A("", !0)], 16))], 16), [[E, u.visible]])];
194
+ }),
195
+ _: 3
196
+ }, 16);
159
197
  }
160
- C.render = A;
198
+ L.render = q;
161
199
  export {
162
- C as default
200
+ L as default
163
201
  };