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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
3 changes: 3 additions & 0 deletions packages/stencil-library/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default (tseslint.config(
".storybook/**/*",
"eslint.config.ts",
"stencil.config.ts",
"storybook-static",
"types",
"vite.config.ts",
],
},
{
Expand Down
4 changes: 2 additions & 2 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/eslint-plugin": "1.0.0",
"@stencil/core": "4.29.3",
"@stencil/eslint-plugin": "1.0.0",
"@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
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 @@ -7,7 +7,7 @@ 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
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;
}
5 changes: 5 additions & 0 deletions packages/stencil-library/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from "vite";

export default defineConfig({
assetsInclude: ['**/*.md'],
});
Loading