Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,744 changes: 2,049 additions & 2,695 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions packages/stencil-library/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { StorybookConfig } from '@storybook/web-components-vite';

import { join, dirname } from "path"

/**
Expand All @@ -12,7 +11,7 @@ function getAbsolutePath(value: string): any {
const config: StorybookConfig = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../src/components/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
"addons": [
getAbsolutePath('@storybook/addon-essentials'),
Expand Down
2 changes: 2 additions & 0 deletions packages/stencil-library/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export default (tseslint.config(
".storybook/**/*",
"eslint.config.ts",
"stencil.config.ts",
"storybook-static",
"types"
],
},
{
Expand Down
6 changes: 3 additions & 3 deletions packages/stencil-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"devDependencies": {
"@chromatic-com/storybook": "^3.1.0",
"@eslint/js": "^9.24.0",
"@stencil/core": "4.29.3",
"@stencil/eslint-plugin": "1.0.0",
"@stencil/core": "4.29.2",
"@stencil/react-output-target": "^0.5.1",
"@stencil/sass": "^3.0.4",
"@storybook/addon-a11y": "^8.6.12",
Expand All @@ -68,7 +68,7 @@
"@storybook/web-components": "^8.6.12",
"@storybook/web-components-vite": "^8.6.12",
"@timkendrick/monaco-editor": "^0.0.9",
"@types/jest": "^29.5.10",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"@typescript-eslint/rule-tester": "^8.30.1",
Expand Down Expand Up @@ -97,6 +97,6 @@
"vitest": "^3.1.1"
},
"dependencies": {
"jodit": "^4.2.27"
"jodit": "^4.6.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html, LitElement } from 'lit';
import { customElement, state } from 'lit/decorators.js';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { html } from 'lit';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/AutoComplete',
Expand All @@ -13,7 +10,7 @@ const meta: Meta = {
parameters: {
docs: {
description: {
component: readme.default,
component: readme,
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Button',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta : Meta = {
title: 'Elements/Checkbox',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta : Meta = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: "Elements/Collapsible",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html, nothing, TemplateResult } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Color Input',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Image Cropper',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html, nothing, TemplateResult } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Input',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Modal',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IPermissions } from "./permissions-interface";
import { IRoleGroup } from "./role-group-interface";
import { IRole } from "./role-interface";
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: "Elements/Permissions Grid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Progress Bar',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import { Component, Host, h, Prop, Event, EventEmitter, Watch, AttachInternals,
import { Jodit } from "jodit";
import type { Config } from "jodit/types/config";
import { decodeHtml } from '../../utilities/stringUtilities';
import { DeepPartial } from 'jodit/types/types';

@Component({
tag: 'dnn-richtext',
styleUrl: 'dnn-richtext.scss',
shadow: true,
shadow: false,
formAssociated: true,
})
export class DnnRichtext {
Expand Down Expand Up @@ -66,16 +67,17 @@ export class DnnRichtext {
}

componentDidLoad(){
var mergedOptions : Config = {
var mergedOptions : Partial<Config> = {
...this.dnnDefaultOptions,
...this.options,
shadowRoot: this.host.shadowRoot,
};

if (this.customizeOptions != undefined){
mergedOptions = this.customizeOptions(mergedOptions);
mergedOptions = this.customizeOptions(mergedOptions as Config);
}
this.plugins.forEach(plugin => Jodit.plugins.add(plugin.name, plugin.callback));
this.editor = Jodit.make(this.textArea, mergedOptions);
this.editor = Jodit.make(this.textArea, (mergedOptions as DeepPartial<Config>));
this.editor.value = decodeHtml(this.value ?? "");
this.setFormValue();
this.editor.e.on('input', () => this.valueInput.emit(this.editor.value));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: "Elements/Searchbox",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html, nothing, TemplateResult } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Select',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from "lit";
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: "Elements/Sort Icon",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { html, nothing, TemplateResult } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Textarea',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import readme from "./readme.md";
import readme from "./readme.md?raw";
import exp from 'constants';


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import readme from "./readme.md";
import readme from "./readme.md?raw";

const meta: Meta = {
title: 'Elements/Vertical Overflow Menu',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit-html/directives/if-defined.js';
import { actions } from '@storybook/addon-actions';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import readme from "./readme.md";
import readme from "./readme.md?raw";


const meta: Meta = {
Expand Down
2 changes: 1 addition & 1 deletion packages/stencil-library/src/utilities/stringUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function getReadableFileSizeString (fileSizeInBytes: number) : string {

/** Takes an html encoded string and converts it to actual decoded html. */
export function decodeHtml(html: string) : string {
if (html != undefined){
if (html == undefined){
return '';
}

Expand Down
4 changes: 4 additions & 0 deletions packages/stencil-library/types/raw-md.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.md?raw' {
const content: string;
export default content;
}
Loading