@nanahoshi/mona-ui 0.24.9 → 0.24.11
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/chart/README.md +223 -77
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +1882 -644
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +1054 -452
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +126 -1
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +131 -13
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +94 -1
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +86 -1
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +86 -1
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +83 -2
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +73 -1
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +86 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +73 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +73 -1
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +86 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +88 -1
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +86 -1
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +73 -1
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +73 -1
- package/fesm2022/nanahoshi-mona-ui-window.mjs +3 -1
- package/i18n/catalogs/en-US.messages.json +77 -5
- package/locales/ar-sa/ar-sa.messages.json +73 -1
- package/locales/de-de/de-de.messages.json +73 -1
- package/locales/es-es/es-es.messages.json +73 -1
- package/locales/fr-fr/fr-fr.messages.json +74 -2
- package/locales/id-id/id-id.messages.json +73 -1
- package/locales/it-it/it-it.messages.json +73 -1
- package/locales/ja-jp/ja-jp.messages.json +73 -1
- package/locales/ko-kr/ko-kr.messages.json +73 -1
- package/locales/pt-br/pt-br.messages.json +73 -1
- package/locales/ru-ru/ru-ru.messages.json +73 -1
- package/locales/tr-tr/tr-tr.messages.json +73 -1
- package/locales/zh-cn/zh-cn.messages.json +73 -1
- package/locales/zh-tw/zh-tw.messages.json +73 -1
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-chart.d.ts +519 -527
- package/types/nanahoshi-mona-ui-editor.d.ts +118 -21
- package/types/nanahoshi-mona-ui-i18n.d.ts +110 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +24 -2
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +72 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +72 -0
|
@@ -465,7 +465,7 @@ class ColorPickerComponent {
|
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
468
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ColorPickerComponent, isStandalone: true, selector: "mona-color-picker", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, opacity: { classPropertyName: "opacity", publicName: "opacity", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touch: "touch", value: "valueChange" }, host: { properties: { "class": "baseClasses()", "attr.tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-invalid": "invalidState() || null", "attr.data-open": "expanded() || null", "attr.data-readonly": "readonly()", "attr.data-required": "required() || null", "attr.role": "'combobox'", "attr.aria-controls": "popupId", "attr.aria-expanded": "expanded()
|
|
468
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ColorPickerComponent, isStandalone: true, selector: "mona-color-picker", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, opacity: { classPropertyName: "opacity", publicName: "opacity", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, showClearButton: { classPropertyName: "showClearButton", publicName: "showClearButton", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { touch: "touch", value: "valueChange" }, host: { properties: { "class": "baseClasses()", "attr.tabindex": "disabled() ? -1 : 0", "attr.data-disabled": "disabled()", "attr.data-invalid": "invalidState() || null", "attr.data-open": "expanded() || null", "attr.data-readonly": "readonly()", "attr.data-required": "required() || null", "attr.role": "'combobox'", "attr.aria-controls": "popupId", "attr.aria-expanded": "expanded() ? 'true' : 'false'", "attr.aria-haspopup": "'dialog'", "attr.aria-label": "ariaLabel() || messages().colorPicker", "attr.aria-disabled": "disabled()", "attr.aria-invalid": "invalidState() ? 'true' : null", "attr.aria-readonly": "readonly()", "attr.aria-required": "required()" } }, queries: [{ propertyName: "valueTemplate", first: true, predicate: ColorPickerValueTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (valueTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"valueTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: value() }\"></ng-container>\n} @else {\n <div [style.background]=\"value()\" [class]=\"colorClasses()\">\n @if (!value()) {\n <svg lucideXCircle [size]=\"16\"></svg>\n }\n </div>\n}\n<mona-indicator-icon preset=\"dropdown\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n @if (view() === \"palette\") {\n <div\n [id]=\"popupId\"\n [class]=\"palettePopupClasses\"\n tabindex=\"0\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().colorPalettePicker\"\n data-palette-container\n (keydown)=\"onPaletteContainerKeyDown($event)\">\n @if (showClearButton()) {\n <div class=\"flex items-center justify-end p-1\">\n <button\n monaButton\n look=\"ghost\"\n size=\"small\"\n [attr.aria-label]=\"messages().clearColor\"\n (click)=\"onClearClick()\">\n <svg lucideDropletOff [size]=\"16\" aria-hidden=\"true\"></svg>\n </button>\n </div>\n }\n <mona-color-palette\n [palette]=\"palette()\"\n [columns]=\"columns()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (valueChange)=\"onColorPaletteValueChange($event)\"\n (touch)=\"onColorPaletteTouch()\"></mona-color-palette>\n </div>\n } @else if (view() === \"gradient\") {\n <div\n [id]=\"popupId\"\n [class]=\"gradientPopupClasses\"\n tabindex=\"0\"\n role=\"dialog\"\n [attr.aria-label]=\"messages().colorGradientPicker\">\n <mona-color-gradient\n [opacity]=\"opacity()\"\n [rounded]=\"rounded()\"\n [disabled]=\"disabled() || readonly()\"\n [value]=\"value()\"\n (valueChange)=\"onColorGradientValueChange($event)\"\n (touch)=\"onColorGradientTouch()\"\n (apply)=\"onColorGradientApply()\"\n (cancel)=\"onColorGradientCancel()\"></mona-color-gradient>\n </div>\n }\n</ng-template>\n", dependencies: [{ kind: "component", type: LucideDropletOff, selector: "svg[lucideDropletOff]" }, { kind: "directive", type: ButtonDirective, selector: "button[monaButton]", inputs: ["aria-haspopup", "disabled", "iconOnly", "loading", "look", "rounded", "selected", "size", "tabindex", "toggleable", "type", "class"], outputs: ["lookChange", "selectedChange"] }, { kind: "component", type: ColorPaletteComponent, selector: "mona-color-palette", inputs: ["aria-label", "columns", "disabled", "invalid", "palette", "readonly", "required", "rounded", "tileSize", "touched", "value"], outputs: ["touch", "valueChange"] }, { kind: "component", type: ColorGradientComponent, selector: "mona-color-gradient", inputs: ["disabled", "format", "invalid", "opacity", "required", "rounded", "showButtons", "showHexInput", "showColorInputs", "touched", "value"], outputs: ["apply", "cancel", "touch", "valueChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: LucideCircleX, selector: "svg[lucideCircleX], svg[lucideXCircle]" }, { kind: "component", type: IndicatorIconComponent, selector: "mona-indicator-icon", inputs: ["icon", "interactive", "label", "preset", "size", "class"], outputs: ["activate"] }] }); }
|
|
469
469
|
}
|
|
470
470
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
471
471
|
type: Component,
|
|
@@ -487,7 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
487
487
|
"[attr.data-required]": "required() || null",
|
|
488
488
|
"[attr.role]": "'combobox'",
|
|
489
489
|
"[attr.aria-controls]": "popupId",
|
|
490
|
-
"[attr.aria-expanded]": "expanded()
|
|
490
|
+
"[attr.aria-expanded]": "expanded() ? 'true' : 'false'",
|
|
491
491
|
"[attr.aria-haspopup]": "'dialog'",
|
|
492
492
|
"[attr.aria-label]": "ariaLabel() || messages().colorPicker",
|
|
493
493
|
"[attr.aria-disabled]": "disabled()",
|
|
@@ -383,7 +383,9 @@ class DialogContentComponent {
|
|
|
383
383
|
return;
|
|
384
384
|
}
|
|
385
385
|
const dialogElement = this.#hostElementRef.nativeElement;
|
|
386
|
-
|
|
386
|
+
// The focus trap moves focus to its first tabbable element after this runs; marking the target makes it
|
|
387
|
+
// land here instead.
|
|
388
|
+
focusElement(dialogElement, element)?.setAttribute("cdkFocusInitial", "");
|
|
387
389
|
}
|
|
388
390
|
getDefaultActions(type) {
|
|
389
391
|
const messages = this.messages();
|