@nextcloud/vue 9.13.0 → 9.13.1
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.
- package/CHANGELOG.md +13 -0
- package/dist/assets/NcAppNavigationSettings.css +6 -6
- package/dist/assets/NcAppSettingsDialog.css +3 -3
- package/dist/assets/NcAppSettingsShortcutsSection.css +1 -1
- package/dist/assets/NcAppSidebar.css +28 -28
- package/dist/assets/NcAssistantButton.css +9 -9
- package/dist/assets/NcAssistantContent.css +3 -3
- package/dist/assets/NcAssistantIcon.css +4 -4
- package/dist/assets/NcBlurHash.css +2 -2
- package/dist/assets/NcDateTimePicker.css +234 -234
- package/dist/assets/NcFilePicker.css +1 -1
- package/dist/assets/NcFormBox.css +11 -11
- package/dist/assets/NcFormBoxButton.css +2 -2
- package/dist/assets/NcFormBoxItem.css +15 -15
- package/dist/assets/NcFormBoxSwitch.css +2 -2
- package/dist/assets/NcFormGroup.css +7 -7
- package/dist/assets/NcHotkey.css +8 -8
- package/dist/assets/NcHotkeyList.css +2 -2
- package/dist/assets/NcIconToggleSwitch.css +4 -4
- package/dist/assets/NcKbd.css +3 -3
- package/dist/assets/NcModal.css +71 -64
- package/dist/assets/NcPopover.css +16 -16
- package/dist/assets/NcRadioGroup.css +2 -2
- package/dist/assets/NcRadioGroupButton.css +14 -14
- package/dist/assets/NcReferenceWidget.css +24 -23
- package/dist/assets/NcRichContenteditable.css +17 -17
- package/dist/assets/NcSelect.css +8 -13
- package/dist/assets/NcUploadPicker.css +7 -7
- package/dist/assets/autolink.css +3 -3
- package/dist/chunks/NcAppNavigationSettings.mjs +6 -6
- package/dist/chunks/NcAppSettingsDialog.mjs +3 -3
- package/dist/chunks/NcAppSettingsShortcutsSection.mjs +1 -1
- package/dist/chunks/NcAppSidebar.mjs +12 -12
- package/dist/chunks/NcAssistantButton.mjs +7 -7
- package/dist/chunks/NcAssistantContent.mjs +3 -3
- package/dist/chunks/NcAssistantIcon.mjs +4 -4
- package/dist/chunks/NcBlurHash.mjs +2 -2
- package/dist/chunks/NcDateTimePicker.mjs +39 -1
- package/dist/chunks/NcDateTimePicker.mjs.map +1 -1
- package/dist/chunks/NcFilePicker.mjs +1 -1
- package/dist/chunks/NcFormBox.mjs +5 -5
- package/dist/chunks/NcFormBoxButton.mjs +2 -2
- package/dist/chunks/NcFormBoxItem.mjs +8 -8
- package/dist/chunks/NcFormBoxSwitch.mjs +2 -2
- package/dist/chunks/NcFormGroup.mjs +7 -7
- package/dist/chunks/NcHotkey.mjs +4 -4
- package/dist/chunks/NcHotkeyList.mjs +2 -2
- package/dist/chunks/NcIconToggleSwitch.mjs +2 -2
- package/dist/chunks/NcKbd.mjs +2 -2
- package/dist/chunks/NcModal.mjs +6 -9
- package/dist/chunks/NcModal.mjs.map +1 -1
- package/dist/chunks/NcPopover.mjs +2 -2
- package/dist/chunks/NcPopover.mjs.map +1 -1
- package/dist/chunks/NcRadioGroup.mjs +2 -2
- package/dist/chunks/NcRadioGroupButton.mjs +6 -6
- package/dist/chunks/NcReferenceWidget.mjs +2 -2
- package/dist/chunks/NcReferenceWidget.mjs.map +1 -1
- package/dist/chunks/NcRichContenteditable.mjs +10 -10
- package/dist/chunks/NcSelect.mjs.map +1 -1
- package/dist/chunks/NcUploadPicker.mjs +6 -6
- package/dist/chunks/_l10n.mjs +3 -3
- package/dist/chunks/autolink.mjs +3 -3
- package/dist/components/NcDateTimePicker/formatValidation.d.ts +10 -0
- package/package.json +7 -7
|
@@ -78,11 +78,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
const assistantIcon = "
|
|
82
|
-
const assistantIcon_inline = "
|
|
83
|
-
const assistantIcon__svg = "
|
|
81
|
+
const assistantIcon = "_assistantIcon_15w88";
|
|
82
|
+
const assistantIcon_inline = "_assistantIcon_inline_i05Rb";
|
|
83
|
+
const assistantIcon__svg = "_assistantIcon__svg_q9--x";
|
|
84
84
|
const style0 = {
|
|
85
|
-
"material-design-icon": "_material-design-
|
|
85
|
+
"material-design-icon": "_material-design-icon_LHjr0",
|
|
86
86
|
assistantIcon,
|
|
87
87
|
assistantIcon_inline,
|
|
88
88
|
assistantIcon__svg
|
|
@@ -83,8 +83,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
const fadeTransition = "
|
|
87
|
-
const fadeTransitionActive = "
|
|
86
|
+
const fadeTransition = "_fadeTransition_RikN9";
|
|
87
|
+
const fadeTransitionActive = "_fadeTransitionActive_Jyfer";
|
|
88
88
|
const style0 = {
|
|
89
89
|
fadeTransition,
|
|
90
90
|
fadeTransitionActive
|
|
@@ -2400,6 +2400,31 @@ function escapeLiteraForFormatString(literalValue) {
|
|
|
2400
2400
|
literalValue = literalValue.replaceAll(/'/g, "''");
|
|
2401
2401
|
return literalValue.replaceAll(/[A-Za-z]+/g, (latinCharSeq) => `'${latinCharSeq}'`);
|
|
2402
2402
|
}
|
|
2403
|
+
const NON_STANDARD_TOKENS_OF_DATE_FNS = /* @__PURE__ */ new Set([
|
|
2404
|
+
"i",
|
|
2405
|
+
"I",
|
|
2406
|
+
"R",
|
|
2407
|
+
"t",
|
|
2408
|
+
"T",
|
|
2409
|
+
"o",
|
|
2410
|
+
"P",
|
|
2411
|
+
"p"
|
|
2412
|
+
]);
|
|
2413
|
+
const QUOTE_CHAR = "'";
|
|
2414
|
+
function checkForNonStandardTokens(format) {
|
|
2415
|
+
const usedNonStandardTokens = /* @__PURE__ */ new Set();
|
|
2416
|
+
let isQuoted = false;
|
|
2417
|
+
for (const char of format) {
|
|
2418
|
+
if (char === QUOTE_CHAR) {
|
|
2419
|
+
isQuoted = !isQuoted;
|
|
2420
|
+
} else if (!isQuoted) {
|
|
2421
|
+
if (NON_STANDARD_TOKENS_OF_DATE_FNS.has(char)) {
|
|
2422
|
+
usedNonStandardTokens.add(char);
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
return [...usedNonStandardTokens];
|
|
2427
|
+
}
|
|
2403
2428
|
const loader = {};
|
|
2404
2429
|
loader["af"] = async () => (await import("date-fns/locale/af")).af;
|
|
2405
2430
|
loader["ar-DZ"] = async () => (await import("date-fns/locale/ar-DZ")).arDZ;
|
|
@@ -2658,6 +2683,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2658
2683
|
// Apply only after new locale was reaplied to VueDatePicker.
|
|
2659
2684
|
flush: "post"
|
|
2660
2685
|
});
|
|
2686
|
+
watchEffect(() => {
|
|
2687
|
+
if (typeof props.format !== "string") {
|
|
2688
|
+
return;
|
|
2689
|
+
}
|
|
2690
|
+
const nonStandardTokens = checkForNonStandardTokens(props.format);
|
|
2691
|
+
if (nonStandardTokens.length !== 0) {
|
|
2692
|
+
let warning = `[NcDateTimePicker] The \`format\` property value "${props.format}" uses the non-standard formating tokens ${nonStandardTokens.join(", ")}.`;
|
|
2693
|
+
warning += " They will be disabled in the future because they are only supported by the date-fns library.";
|
|
2694
|
+
warning += " Only use tokens from the Unicode Technical Standard #35.";
|
|
2695
|
+
warning += " See https://github.com/nextcloud-libraries/nextcloud-vue/issues/8931";
|
|
2696
|
+
warn(warning);
|
|
2697
|
+
}
|
|
2698
|
+
});
|
|
2661
2699
|
const realFormat = computed(() => {
|
|
2662
2700
|
if (props.format) {
|
|
2663
2701
|
return props.format;
|
|
@@ -2975,7 +3013,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2975
3013
|
};
|
|
2976
3014
|
}
|
|
2977
3015
|
});
|
|
2978
|
-
const NcDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
3016
|
+
const NcDateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-23910d95"]]);
|
|
2979
3017
|
export {
|
|
2980
3018
|
NcDateTimePicker as N
|
|
2981
3019
|
};
|