@quoreadmin/ui 1.4.6 → 1.4.8

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 (148) hide show
  1. package/dist/index164.js +14 -14
  2. package/dist/index165.js +3 -3
  3. package/dist/index168.js +4 -4
  4. package/dist/index175.js +10 -10
  5. package/dist/index177.js +10 -10
  6. package/dist/index184.js +28 -28
  7. package/dist/index185.js +2 -2
  8. package/dist/index186.js +2 -2
  9. package/dist/index187.js +1 -1
  10. package/dist/index189.js +2 -2
  11. package/dist/index191.js +14 -14
  12. package/dist/index192.js +1 -1
  13. package/dist/index193.js +1 -1
  14. package/dist/index194.js +3 -3
  15. package/dist/index195.js +3 -3
  16. package/dist/index196.js +84 -157
  17. package/dist/index197.js +384 -205
  18. package/dist/index198.js +22 -37
  19. package/dist/index199.js +33 -10
  20. package/dist/index200.js +113 -30
  21. package/dist/index201.js +30 -110
  22. package/dist/index202.js +26 -36
  23. package/dist/index203.js +36 -26
  24. package/dist/index204.js +9 -36
  25. package/dist/index205.js +19 -9
  26. package/dist/index206.js +10 -19
  27. package/dist/index207.js +10 -10
  28. package/dist/index208.js +51 -10
  29. package/dist/index209.js +37 -45
  30. package/dist/index210.js +3 -42
  31. package/dist/index211.js +38 -3
  32. package/dist/index212.js +21 -39
  33. package/dist/index213.js +161 -21
  34. package/dist/index214.js +19 -87
  35. package/dist/index215.js +20 -407
  36. package/dist/index216.js +22 -22
  37. package/dist/index217.js +167 -129
  38. package/dist/index218.js +69 -19
  39. package/dist/index219.js +34 -20
  40. package/dist/index22.js +15 -14
  41. package/dist/index220.js +39 -21
  42. package/dist/index221.js +21 -198
  43. package/dist/index222.js +21 -69
  44. package/dist/index223.js +20 -34
  45. package/dist/index224.js +823 -27
  46. package/dist/index225.js +679 -104
  47. package/dist/index226.js +174 -36
  48. package/dist/index227.js +20 -80
  49. package/dist/index228.js +3 -3
  50. package/dist/index229.js +14 -12
  51. package/dist/index230.js +10 -10
  52. package/dist/index231.js +9 -9
  53. package/dist/index232.js +3 -22
  54. package/dist/index233.js +186 -21
  55. package/dist/index234.js +132 -19
  56. package/dist/index235.js +1131 -744
  57. package/dist/index236.js +104 -679
  58. package/dist/index237.js +20 -176
  59. package/dist/index238.js +11 -11
  60. package/dist/index239.js +15 -13
  61. package/dist/index240.js +37 -19
  62. package/dist/index241.js +29 -3
  63. package/dist/index242.js +19 -186
  64. package/dist/index243.js +18 -131
  65. package/dist/index244.js +2 -1223
  66. package/dist/index245.js +2 -20
  67. package/dist/index246.js +3632 -22
  68. package/dist/index247.js +55 -22
  69. package/dist/index248.js +77 -29
  70. package/dist/index249.js +52 -20
  71. package/dist/index250.js +215 -20
  72. package/dist/index251.js +10 -2
  73. package/dist/index252.js +57 -2
  74. package/dist/index253.js +46 -3617
  75. package/dist/index254.js +35 -36
  76. package/dist/index255.js +28 -30
  77. package/dist/index256.js +699 -28
  78. package/dist/index257.js +21 -197
  79. package/dist/index258.js +63 -9
  80. package/dist/index259.js +8 -54
  81. package/dist/index260.js +695 -51
  82. package/dist/index261.js +815 -49
  83. package/dist/index262.js +160 -74
  84. package/dist/index263.js +212 -707
  85. package/dist/index264.js +37 -39
  86. package/dist/index265.js +10 -64
  87. package/dist/index266.js +79 -10
  88. package/dist/index267.js +20 -705
  89. package/dist/index268.js +20 -820
  90. package/dist/index269.js +249 -50
  91. package/dist/index270.js +8 -79
  92. package/dist/index271.js +138 -26
  93. package/dist/index272.js +83 -22
  94. package/dist/index273.js +53 -21
  95. package/dist/index274.js +78 -15
  96. package/dist/index275.js +26 -17
  97. package/dist/index276.js +22 -253
  98. package/dist/index277.js +22 -8
  99. package/dist/index278.js +15 -137
  100. package/dist/index279.js +17 -83
  101. package/dist/index280.js +1 -1
  102. package/dist/index281.js +3 -2
  103. package/dist/index282.js +27 -3
  104. package/dist/index283.js +1515 -24
  105. package/dist/index284.js +346 -1478
  106. package/dist/index285.js +2675 -330
  107. package/dist/index286.js +72 -2717
  108. package/dist/index287.js +3760 -76
  109. package/dist/index288.js +49 -3759
  110. package/dist/index289.js +75 -56
  111. package/dist/index290.js +21 -78
  112. package/dist/index291.js +935 -22
  113. package/dist/index292.js +22 -935
  114. package/dist/index293.js +13 -15
  115. package/dist/index294.js +5 -5
  116. package/dist/index295.js +68 -19
  117. package/dist/index296.js +18 -68
  118. package/dist/index297.js +14 -14
  119. package/dist/index298.js +22 -19
  120. package/dist/index299.js +14 -14
  121. package/dist/index300.js +62 -21
  122. package/dist/index301.js +2 -63
  123. package/dist/index303.js +2 -2
  124. package/dist/index304.js +4 -4
  125. package/dist/index305.js +2 -2
  126. package/dist/index323.js +1 -1
  127. package/dist/index326.js +1 -1
  128. package/dist/index331.js +1 -1
  129. package/dist/index336.js +2 -2
  130. package/dist/index341.js +1 -1
  131. package/dist/index342.js +2 -2
  132. package/dist/index347.js +1 -1
  133. package/dist/index348.js +1 -1
  134. package/dist/index349.js +1 -1
  135. package/dist/index350.js +1 -1
  136. package/dist/index363.js +1 -1
  137. package/dist/index96.js +23 -19
  138. package/dist/src/components/comment/comment.d.ts +9 -0
  139. package/dist/src/components/comment/comment.stories.d.ts +9 -0
  140. package/dist/src/components/comment-section/comment-section.d.ts +18 -0
  141. package/dist/src/components/comment-section/comment-section.stories.d.ts +27 -0
  142. package/dist/src/components/file-upload/file-upload.d.ts +9 -0
  143. package/dist/src/components/file-upload/file-upload.stories.d.ts +45 -0
  144. package/dist/src/components/room-details-popover/room-details-popover.d.ts +18 -0
  145. package/dist/src/components/wysiwyg/wysiwyg.d.ts +9 -0
  146. package/dist/src/components/wysiwyg/wysiwyg.stories.d.ts +9 -0
  147. package/package.json +2 -2
  148. package/tailwind.preset.ts +1 -1
package/dist/index262.js CHANGED
@@ -1,77 +1,163 @@
1
- import { Mark as s, markPasteRule as r, markInputRule as a, mergeAttributes as n } from "./index253.js";
2
- var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, o = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = s.create({
3
- name: "italic",
4
- addOptions() {
5
- return {
6
- HTMLAttributes: {}
7
- };
8
- },
9
- parseHTML() {
10
- return [
11
- {
12
- tag: "em"
13
- },
14
- {
15
- tag: "i",
16
- getAttrs: (t) => t.style.fontStyle !== "normal" && null
17
- },
18
- {
19
- style: "font-style=normal",
20
- clearMark: (t) => t.type.name === this.name
21
- },
22
- {
23
- style: "font-style=italic"
24
- }
25
- ];
26
- },
27
- renderHTML({ HTMLAttributes: t }) {
28
- return ["em", n(this.options.HTMLAttributes, t), 0];
29
- },
30
- addCommands() {
31
- return {
32
- setItalic: () => ({ commands: t }) => t.setMark(this.name),
33
- toggleItalic: () => ({ commands: t }) => t.toggleMark(this.name),
34
- unsetItalic: () => ({ commands: t }) => t.unsetMark(this.name)
35
- };
36
- },
37
- markdownTokenName: "em",
38
- parseMarkdown: (t, e) => e.applyMark("italic", e.parseInline(t.tokens || [])),
39
- renderMarkdown: (t, e) => `*${e.renderChildren(t)}*`,
40
- addKeyboardShortcuts() {
41
- return {
42
- "Mod-i": () => this.editor.commands.toggleItalic(),
43
- "Mod-I": () => this.editor.commands.toggleItalic()
44
- };
45
- },
46
- addInputRules() {
47
- return [
48
- a({
49
- find: i,
50
- type: this.type
51
- }),
52
- a({
53
- find: o,
54
- type: this.type
55
- })
56
- ];
57
- },
58
- addPasteRules() {
59
- return [
60
- r({
61
- find: d,
62
- type: this.type
63
- }),
64
- r({
65
- find: l,
66
- type: this.type
67
- })
68
- ];
1
+ import { toDate as m, isValidDate as M, getWeek as l } from "./index264.js";
2
+ import h from "./index265.js";
3
+ var Y = /\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;
4
+ function r(n) {
5
+ for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2, e = "".concat(Math.abs(n)), u = n < 0 ? "-" : ""; e.length < t; )
6
+ e = "0".concat(e);
7
+ return u + e;
8
+ }
9
+ function c(n) {
10
+ return Math.round(n.getTimezoneOffset() / 15) * 15;
11
+ }
12
+ function g(n) {
13
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n > 0 ? "-" : "+", u = Math.abs(n), o = Math.floor(u / 60), a = u % 60;
14
+ return e + r(o, 2) + t + r(a, 2);
15
+ }
16
+ var d = function(t, e, u) {
17
+ var o = t < 12 ? "AM" : "PM";
18
+ return u ? o.toLocaleLowerCase() : o;
19
+ }, i = {
20
+ Y: function(t) {
21
+ var e = t.getFullYear();
22
+ return e <= 9999 ? "".concat(e) : "+".concat(e);
23
+ },
24
+ // Year: 00, 01, ..., 99
25
+ YY: function(t) {
26
+ return r(t.getFullYear(), 4).substr(2);
27
+ },
28
+ // Year: 1900, 1901, ..., 2099
29
+ YYYY: function(t) {
30
+ return r(t.getFullYear(), 4);
31
+ },
32
+ // Month: 1, 2, ..., 12
33
+ M: function(t) {
34
+ return t.getMonth() + 1;
35
+ },
36
+ // Month: 01, 02, ..., 12
37
+ MM: function(t) {
38
+ return r(t.getMonth() + 1, 2);
39
+ },
40
+ MMM: function(t, e) {
41
+ return e.monthsShort[t.getMonth()];
42
+ },
43
+ MMMM: function(t, e) {
44
+ return e.months[t.getMonth()];
45
+ },
46
+ // Day of month: 1, 2, ..., 31
47
+ D: function(t) {
48
+ return t.getDate();
49
+ },
50
+ // Day of month: 01, 02, ..., 31
51
+ DD: function(t) {
52
+ return r(t.getDate(), 2);
53
+ },
54
+ // Hour: 0, 1, ... 23
55
+ H: function(t) {
56
+ return t.getHours();
57
+ },
58
+ // Hour: 00, 01, ..., 23
59
+ HH: function(t) {
60
+ return r(t.getHours(), 2);
61
+ },
62
+ // Hour: 1, 2, ..., 12
63
+ h: function(t) {
64
+ var e = t.getHours();
65
+ return e === 0 ? 12 : e > 12 ? e % 12 : e;
66
+ },
67
+ // Hour: 01, 02, ..., 12
68
+ hh: function() {
69
+ var t = i.h.apply(i, arguments);
70
+ return r(t, 2);
71
+ },
72
+ // Minute: 0, 1, ..., 59
73
+ m: function(t) {
74
+ return t.getMinutes();
75
+ },
76
+ // Minute: 00, 01, ..., 59
77
+ mm: function(t) {
78
+ return r(t.getMinutes(), 2);
79
+ },
80
+ // Second: 0, 1, ..., 59
81
+ s: function(t) {
82
+ return t.getSeconds();
83
+ },
84
+ // Second: 00, 01, ..., 59
85
+ ss: function(t) {
86
+ return r(t.getSeconds(), 2);
87
+ },
88
+ // 1/10 of second: 0, 1, ..., 9
89
+ S: function(t) {
90
+ return Math.floor(t.getMilliseconds() / 100);
91
+ },
92
+ // 1/100 of second: 00, 01, ..., 99
93
+ SS: function(t) {
94
+ return r(Math.floor(t.getMilliseconds() / 10), 2);
95
+ },
96
+ // Millisecond: 000, 001, ..., 999
97
+ SSS: function(t) {
98
+ return r(t.getMilliseconds(), 3);
99
+ },
100
+ // Day of week: 0, 1, ..., 6
101
+ d: function(t) {
102
+ return t.getDay();
103
+ },
104
+ // Day of week: 'Su', 'Mo', ..., 'Sa'
105
+ dd: function(t, e) {
106
+ return e.weekdaysMin[t.getDay()];
107
+ },
108
+ // Day of week: 'Sun', 'Mon',..., 'Sat'
109
+ ddd: function(t, e) {
110
+ return e.weekdaysShort[t.getDay()];
111
+ },
112
+ // Day of week: 'Sunday', 'Monday', ...,'Saturday'
113
+ dddd: function(t, e) {
114
+ return e.weekdays[t.getDay()];
115
+ },
116
+ // AM, PM
117
+ A: function(t, e) {
118
+ var u = e.meridiem || d;
119
+ return u(t.getHours(), t.getMinutes(), !1);
120
+ },
121
+ // am, pm
122
+ a: function(t, e) {
123
+ var u = e.meridiem || d;
124
+ return u(t.getHours(), t.getMinutes(), !0);
125
+ },
126
+ // Timezone: -01:00, +00:00, ... +12:00
127
+ Z: function(t) {
128
+ return g(c(t), ":");
129
+ },
130
+ // Timezone: -0100, +0000, ... +1200
131
+ ZZ: function(t) {
132
+ return g(c(t));
133
+ },
134
+ // Seconds timestamp: 512969520
135
+ X: function(t) {
136
+ return Math.floor(t.getTime() / 1e3);
137
+ },
138
+ // Milliseconds timestamp: 512969520900
139
+ x: function(t) {
140
+ return t.getTime();
141
+ },
142
+ w: function(t, e) {
143
+ return l(t, {
144
+ firstDayOfWeek: e.firstDayOfWeek,
145
+ firstWeekContainsDate: e.firstWeekContainsDate
146
+ });
147
+ },
148
+ ww: function(t, e) {
149
+ return r(i.w(t, e), 2);
69
150
  }
70
- });
151
+ };
152
+ function v(n, t) {
153
+ var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, u = t ? String(t) : "YYYY-MM-DDTHH:mm:ss.SSSZ", o = m(n);
154
+ if (!M(o))
155
+ return "Invalid Date";
156
+ var a = e.locale || h;
157
+ return u.replace(Y, function(f, s) {
158
+ return s || (typeof i[f] == "function" ? "".concat(i[f](o, a)) : f);
159
+ });
160
+ }
71
161
  export {
72
- m as Italic,
73
- i as starInputRegex,
74
- d as starPasteRegex,
75
- o as underscoreInputRegex,
76
- l as underscorePasteRegex
162
+ v as format
77
163
  };