@ncino/web-components 9.2.0-preview.4 → 9.2.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/dist/components/accordion/gator/base/accordion.gator.js +1 -1
- package/dist/components/accordion/gator/group/accordion-group.gator.js +1 -1
- package/dist/components/alert/gator/base/alert.gator.js +1 -1
- package/dist/components/banner/gator/banner.gator.js +1 -1
- package/dist/components/button/gator/button.gator.js +1 -1
- package/dist/components/display-card/gator/display-card.gator.js +1 -1
- package/dist/components/headline-card/gator/headline-card.gator.js +1 -1
- package/dist/components/icon/gator/icon.gator.js +2 -2
- package/dist/components/icon/gator/index.js +1 -1
- package/dist/components/icon/gator/templates/arrows-down-up.js +8 -0
- package/dist/components/icon/gator/templates/index.js +1 -1
- package/dist/components/image-card/gator/image-card.gator.js +1 -1
- package/dist/components/input/base/input-base.gator.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
- package/dist/components/input/gator/help-text/help-text.gator.js +1 -1
- package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +1 -1
- package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
- package/dist/components/input/gator/input-textarea/input-textarea.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- package/dist/components/input-rich-text/ckeditor-config.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
- package/dist/components/list/gator/list-item/list-item.gator.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/selection-box/selection-box.gator.js +1 -1
- package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
- package/dist/components/table/gator/table.gator.js +135 -45
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@47.5.0 → @ckeditor_ckeditor5-alignment@47.6.0}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@47.5.0 → @ckeditor_ckeditor5-autoformat@47.6.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@47.5.0 → @ckeditor_ckeditor5-autosave@47.6.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@47.5.0 → @ckeditor_ckeditor5-basic-styles@47.6.0}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@47.5.0 → @ckeditor_ckeditor5-block-quote@47.6.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@47.5.0 → @ckeditor_ckeditor5-clipboard@47.6.0}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@47.5.0 → @ckeditor_ckeditor5-cloud-services@47.6.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@47.5.0 → @ckeditor_ckeditor5-code-block@47.6.0}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@47.5.0 → @ckeditor_ckeditor5-core@47.6.0}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@47.5.0 → @ckeditor_ckeditor5-editor-classic@47.6.0}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@47.5.0 → @ckeditor_ckeditor5-engine@47.6.0}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@47.5.0 → @ckeditor_ckeditor5-enter@47.6.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@47.5.0 → @ckeditor_ckeditor5-essentials@47.6.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@47.5.0 → @ckeditor_ckeditor5-find-and-replace@47.6.0}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@47.5.0 → @ckeditor_ckeditor5-font@47.6.0}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@47.5.0 → @ckeditor_ckeditor5-heading@47.6.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@47.5.0 → @ckeditor_ckeditor5-highlight@47.6.0}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@47.5.0 → @ckeditor_ckeditor5-horizontal-line@47.6.0}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@47.5.0 → @ckeditor_ckeditor5-html-embed@47.6.0}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.6.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +3 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@47.5.0 → @ckeditor_ckeditor5-icons@47.6.0}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@47.5.0 → @ckeditor_ckeditor5-image@47.6.0}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@47.6.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@47.5.0 → @ckeditor_ckeditor5-language@47.6.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.6.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.6.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@47.5.0 → @ckeditor_ckeditor5-markdown-gfm@47.6.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@47.5.0 → @ckeditor_ckeditor5-media-embed@47.6.0}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@47.5.0 → @ckeditor_ckeditor5-mention@47.6.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@47.5.0 → @ckeditor_ckeditor5-page-break@47.6.0}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@47.5.0 → @ckeditor_ckeditor5-paragraph@47.6.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.6.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@47.5.0 → @ckeditor_ckeditor5-remove-format@47.6.0}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@47.5.0 → @ckeditor_ckeditor5-select-all@47.6.0}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@47.5.0 → @ckeditor_ckeditor5-show-blocks@47.6.0}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@47.5.0 → @ckeditor_ckeditor5-source-editing@47.6.0}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@47.5.0 → @ckeditor_ckeditor5-special-characters@47.6.0}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@47.5.0 → @ckeditor_ckeditor5-style@47.6.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.6.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@47.5.0 → @ckeditor_ckeditor5-typing@47.6.0}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@47.5.0 → @ckeditor_ckeditor5-ui@47.6.0}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@47.5.0 → @ckeditor_ckeditor5-undo@47.6.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@47.5.0 → @ckeditor_ckeditor5-upload@47.6.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@47.5.0 → @ckeditor_ckeditor5-widget@47.6.0}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/pick.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isNil.js +1 -0
- package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
- package/dist/types/components/icon/gator/templates/arrows-down-up.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/index.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +2 -0
- package/dist/types/components/table/gator/table.gator.d.ts +27 -0
- package/dist/types/components/table/table-column-definition.d.ts +8 -0
- package/package.json +5 -5
- package/web-types.json +35 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.5.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +0 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@47.5.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.5.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.5.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.5.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.5.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.5.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +0 -8
- /package/dist/assets/node_modules/.pnpm/{ckeditor5@47.5.0 → ckeditor5@47.6.0}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
- /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@47.5.0 → @ckeditor_ckeditor5-watchdog@47.6.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as f,html as o}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as b}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as k}from"../../../utils/decorators/custom-element-decorator.js";import{msg as $}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{NjcTable as C}from"../table.js";import{formatTableTextValue as w}from"../table-format-utils.js";import T from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import x from"../../../packages/styles/dist/gator/tokens/primitive.tokens.css.js";import y from"../../../packages/styles/dist/gator/tokens/semantic.tokens.css.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import"./table-cells/table-cell-chip.gator.js";import"./table-cells/table-cell-avatar.gator.js";import"./table-cells/table-cell-checkbox.gator.js";import"./table-cells/table-cell-text-link.gator.js";import"./table-cells/table-cell-button.gator.js";import"./table-cells/table-cell-icon-button.gator.js";import"./table-cells/table-cell-input-dropdown.gator.js";import"./table-cells/table-cell-input-text.gator.js";import"./table-cells/table-cell-text.gator.js";import"../../checkbox/checkbox.gator.js";import"../../skip-link/gator/base/skip-link.gator.js";import{unsafeCSS as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var R=Object.defineProperty,P=Object.getOwnPropertyDescriptor,h=(e,t,l,s)=>{for(var a=s>1?void 0:s?P(t,l):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(a=(s?r(t,l,a):r(a))||a);return s&&a&&R(t,l,a),a};let d=class extends C{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.skeleton=!1,this.selectedRows=[],this._currentPage=1}updated(e){super.updated(e),e.has("data")&&queueMicrotask(()=>{this.selectedRows=this.data.filter(t=>t.selected&&!t.isTableHeader)})}render(){if(!this.skeleton&&!this.columns)return null;const e=this.skeleton?this._skeletonLoaderColumns:this.columns;return this.renderWrapper(this.getTableHeader(e),this.getTableBody(e,this.displayedRowData))}get _skeletonLoaderColumns(){const e=this.columns?.length||6;let t=[];for(let l=0;l<e;l++)t=t.concat({field:`skeleton-loader-${l}`,name:`skeleton-loader-${l}`});return t}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(e,t){return o`
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as f,html as p}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as $}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as b}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as y}from"../../../utils/decorators/custom-element-decorator.js";import{msg as u}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{NjcTable as F}from"../table.js";import{formatTableTextValue as S}from"../table-format-utils.js";import x from"../../../packages/web-components/src/components/table/gator/table.gator.scss.js";import P from"../../../packages/styles/dist/gator/tokens/primitive.tokens.css.js";import T from"../../../packages/styles/dist/gator/tokens/semantic.tokens.css.js";import"./table-bulk-controls/table-bulk-controls.gator.js";import"./table-cells/table-cell-chip.gator.js";import"./table-cells/table-cell-avatar.gator.js";import"./table-cells/table-cell-checkbox.gator.js";import"./table-cells/table-cell-text-link.gator.js";import"./table-cells/table-cell-button.gator.js";import"./table-cells/table-cell-icon-button.gator.js";import"./table-cells/table-cell-input-dropdown.gator.js";import"./table-cells/table-cell-input-text.gator.js";import"./table-cells/table-cell-text.gator.js";import"../../checkbox/checkbox.gator.js";import"../../icon/gator/icon.gator.js";import"../../icon/gator/templates/add-link.js";import"../../icon/gator/templates/airplane.js";import"../../icon/gator/templates/alarm.js";import"../../icon/gator/templates/apartment.js";import"../../icon/gator/templates/arrow-around.js";import"../../icon/gator/templates/arrow-down.js";import"../../icon/gator/templates/arrow-left.js";import"../../icon/gator/templates/arrow-line-left.js";import"../../icon/gator/templates/arrow-line-right.js";import"../../icon/gator/templates/arrow-right.js";import"../../icon/gator/templates/arrow-up.js";import"../../icon/gator/templates/arrows-down-up.js";import"../../icon/gator/templates/bank.js";import"../../icon/gator/templates/bell-disabled.js";import"../../icon/gator/templates/bell.js";import"../../icon/gator/templates/binoculars.js";import"../../icon/gator/templates/book.js";import"../../icon/gator/templates/box.js";import"../../icon/gator/templates/brain.js";import"../../icon/gator/templates/cake.js";import"../../icon/gator/templates/calculator.js";import"../../icon/gator/templates/calendar.js";import"../../icon/gator/templates/camera.js";import"../../icon/gator/templates/caret-up-down.js";import"../../icon/gator/templates/case.js";import"../../icon/gator/templates/chart-bar-horizontal.js";import"../../icon/gator/templates/chart-bar.js";import"../../icon/gator/templates/chart-donut.js";import"../../icon/gator/templates/chart-line.js";import"../../icon/gator/templates/chart-pie.js";import"../../icon/gator/templates/chart-rise.js";import"../../icon/gator/templates/chart-scatter.js";import"../../icon/gator/templates/chat-circle-ai.js";import"../../icon/gator/templates/chat-circle-dots.js";import"../../icon/gator/templates/chat-circle-slash.js";import"../../icon/gator/templates/chat-circle-text.js";import"../../icon/gator/templates/chat-circle.js";import"../../icon/gator/templates/chat.js";import"../../icon/gator/templates/check-circle-filled.js";import"../../icon/gator/templates/check-circle.js";import"../../icon/gator/templates/check.js";import"../../icon/gator/templates/checkbox-indeterminate.js";import"../../icon/gator/templates/checkbox-selected.js";import"../../icon/gator/templates/checkbox.js";import"../../icon/gator/templates/checkerboard.js";import"../../icon/gator/templates/chevron-down.js";import"../../icon/gator/templates/chevron-left.js";import"../../icon/gator/templates/chevron-right.js";import"../../icon/gator/templates/chevron-up.js";import"../../icon/gator/templates/circle-arrow-down.js";import"../../icon/gator/templates/circle-arrow-left.js";import"../../icon/gator/templates/circle-arrow-right.js";import"../../icon/gator/templates/circle-arrow-up.js";import"../../icon/gator/templates/circle-dashed.js";import"../../icon/gator/templates/circle-filled.js";import"../../icon/gator/templates/circle.js";import"../../icon/gator/templates/city.js";import"../../icon/gator/templates/clipboard.js";import"../../icon/gator/templates/clock-clockwise.js";import"../../icon/gator/templates/clock-counter-clockwise.js";import"../../icon/gator/templates/clock.js";import"../../icon/gator/templates/collapse.js";import"../../icon/gator/templates/cone.js";import"../../icon/gator/templates/contact-info.js";import"../../icon/gator/templates/copy.js";import"../../icon/gator/templates/credit-card.js";import"../../icon/gator/templates/crop.js";import"../../icon/gator/templates/crosshairs.js";import"../../icon/gator/templates/currency-dollar-simple.js";import"../../icon/gator/templates/currency-eur.js";import"../../icon/gator/templates/currency-gbp.js";import"../../icon/gator/templates/currency-inr.js";import"../../icon/gator/templates/currency-jpy.js";import"../../icon/gator/templates/currency-krw.js";import"../../icon/gator/templates/currency-kzt.js";import"../../icon/gator/templates/currency-ngn.js";import"../../icon/gator/templates/currency-rub.js";import"../../icon/gator/templates/cursor-arrow.js";import"../../icon/gator/templates/cursor-hand.js";import"../../icon/gator/templates/cursor.js";import"../../icon/gator/templates/dashboard.js";import"../../icon/gator/templates/delete.js";import"../../icon/gator/templates/dna.js";import"../../icon/gator/templates/document-add.js";import"../../icon/gator/templates/document-ai.js";import"../../icon/gator/templates/document-check.js";import"../../icon/gator/templates/document-e-sign.js";import"../../icon/gator/templates/document-image.js";import"../../icon/gator/templates/document-pdf.js";import"../../icon/gator/templates/document-sign.js";import"../../icon/gator/templates/document-zip.js";import"../../icon/gator/templates/document.js";import"../../icon/gator/templates/dollar-bills.js";import"../../icon/gator/templates/dollar-house.js";import"../../icon/gator/templates/down-payment.js";import"../../icon/gator/templates/download.js";import"../../icon/gator/templates/drag-drop.js";import"../../icon/gator/templates/earth.js";import"../../icon/gator/templates/exclude-square.js";import"../../icon/gator/templates/exit-circle.js";import"../../icon/gator/templates/exit-left.js";import"../../icon/gator/templates/exit.js";import"../../icon/gator/templates/expand-arrows.js";import"../../icon/gator/templates/expand.js";import"../../icon/gator/templates/export.js";import"../../icon/gator/templates/eye-closed.js";import"../../icon/gator/templates/eye-crossed.js";import"../../icon/gator/templates/eye.js";import"../../icon/gator/templates/facebook-logo.js";import"../../icon/gator/templates/file-code.js";import"../../icon/gator/templates/files.js";import"../../icon/gator/templates/filter-funnel.js";import"../../icon/gator/templates/filters-2.js";import"../../icon/gator/templates/filters.js";import"../../icon/gator/templates/flags/flag-ad-andorra.js";import"../../icon/gator/templates/flags/flag-ae-united-arab-emirates.js";import"../../icon/gator/templates/flags/flag-af-afghanistan.js";import"../../icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js";import"../../icon/gator/templates/flags/flag-ai-anguilla.js";import"../../icon/gator/templates/flags/flag-al-albania.js";import"../../icon/gator/templates/flags/flag-am-armenia.js";import"../../icon/gator/templates/flags/flag-ao-angola.js";import"../../icon/gator/templates/flags/flag-aq-antarctica.js";import"../../icon/gator/templates/flags/flag-ar-argentina.js";import"../../icon/gator/templates/flags/flag-as-american-smoa.js";import"../../icon/gator/templates/flags/flag-at-austria.js";import"../../icon/gator/templates/flags/flag-au-australia.js";import"../../icon/gator/templates/flags/flag-aw-aruba.js";import"../../icon/gator/templates/flags/flag-ax-aland-islands.js";import"../../icon/gator/templates/flags/flag-az-azerbaijan.js";import"../../icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js";import"../../icon/gator/templates/flags/flag-bb-barbados.js";import"../../icon/gator/templates/flags/flag-bd-bangladesh.js";import"../../icon/gator/templates/flags/flag-be-belgium.js";import"../../icon/gator/templates/flags/flag-bf-burkina-faso.js";import"../../icon/gator/templates/flags/flag-bg-bulgaria.js";import"../../icon/gator/templates/flags/flag-bh-bahrain.js";import"../../icon/gator/templates/flags/flag-bi-burundi.js";import"../../icon/gator/templates/flags/flag-bj-benin.js";import"../../icon/gator/templates/flags/flag-bl-saint-barthelemy.js";import"../../icon/gator/templates/flags/flag-bm-bermuda.js";import"../../icon/gator/templates/flags/flag-bn-brunei-darussalam.js";import"../../icon/gator/templates/flags/flag-bo-bolivia.js";import"../../icon/gator/templates/flags/flag-bq-bo-bonaire.js";import"../../icon/gator/templates/flags/flag-bq-sa-sba.js";import"../../icon/gator/templates/flags/flag-bq-se-snt-eustatius.js";import"../../icon/gator/templates/flags/flag-br-brazil.js";import"../../icon/gator/templates/flags/flag-bs-bahamas.js";import"../../icon/gator/templates/flags/flag-bt-bhutan.js";import"../../icon/gator/templates/flags/flag-bv-bouvet-island.js";import"../../icon/gator/templates/flags/flag-bw-botswana.js";import"../../icon/gator/templates/flags/flag-by-belarus.js";import"../../icon/gator/templates/flags/flag-bz-belize.js";import"../../icon/gator/templates/flags/flag-ca-canada.js";import"../../icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js";import"../../icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js";import"../../icon/gator/templates/flags/flag-cf-central-african-republic.js";import"../../icon/gator/templates/flags/flag-cg-republic-of-the-congo.js";import"../../icon/gator/templates/flags/flag-ch-switzerland.js";import"../../icon/gator/templates/flags/flag-ci-côte-divoire-ivory-coast.js";import"../../icon/gator/templates/flags/flag-ck-cook-islands.js";import"../../icon/gator/templates/flags/flag-cl-chile.js";import"../../icon/gator/templates/flags/flag-cm-cameroon.js";import"../../icon/gator/templates/flags/flag-cn-china.js";import"../../icon/gator/templates/flags/flag-co-colombia.js";import"../../icon/gator/templates/flags/flag-cr-costa-rica.js";import"../../icon/gator/templates/flags/flag-cu-cuba.js";import"../../icon/gator/templates/flags/flag-cv-cabo-verde.js";import"../../icon/gator/templates/flags/flag-cw-curaçao.js";import"../../icon/gator/templates/flags/flag-cx-christmas-island.js";import"../../icon/gator/templates/flags/flag-cy-cyprus.js";import"../../icon/gator/templates/flags/flag-cz-czech-republic.js";import"../../icon/gator/templates/flags/flag-de-germany.js";import"../../icon/gator/templates/flags/flag-dj-djibouti.js";import"../../icon/gator/templates/flags/flag-dk-denmark.js";import"../../icon/gator/templates/flags/flag-dm-dominica.js";import"../../icon/gator/templates/flags/flag-do-dominican-republic.js";import"../../icon/gator/templates/flags/flag-dz-algeria.js";import"../../icon/gator/templates/flags/flag-ec-ecuador.js";import"../../icon/gator/templates/flags/flag-ee-estonia.js";import"../../icon/gator/templates/flags/flag-eg-egypt.js";import"../../icon/gator/templates/flags/flag-eh-western-sahara.js";import"../../icon/gator/templates/flags/flag-er-eritrea.js";import"../../icon/gator/templates/flags/flag-es-sain.js";import"../../icon/gator/templates/flags/flag-et-ethiopia.js";import"../../icon/gator/templates/flags/flag-fi-finland.js";import"../../icon/gator/templates/flags/flag-fj-fiji.js";import"../../icon/gator/templates/flags/flag-fk-falkland-islands.js";import"../../icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js";import"../../icon/gator/templates/flags/flag-fo-faroe-islands.js";import"../../icon/gator/templates/flags/flag-fr-france.js";import"../../icon/gator/templates/flags/flag-ga-gabon.js";import"../../icon/gator/templates/flags/flag-gb-eng-england.js";import"../../icon/gator/templates/flags/flag-gb-nir-northern-ireland.js";import"../../icon/gator/templates/flags/flag-gb-sct-sotland.js";import"../../icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js";import"../../icon/gator/templates/flags/flag-gb-wls-wales.js";import"../../icon/gator/templates/flags/flag-gd-grenada.js";import"../../icon/gator/templates/flags/flag-ge-georgia.js";import"../../icon/gator/templates/flags/flag-gf-french-guiana.js";import"../../icon/gator/templates/flags/flag-gg-guernsey.js";import"../../icon/gator/templates/flags/flag-gh-ghana.js";import"../../icon/gator/templates/flags/flag-gi-gibraltar.js";import"../../icon/gator/templates/flags/flag-gl-greenland.js";import"../../icon/gator/templates/flags/flag-gm-gambia.js";import"../../icon/gator/templates/flags/flag-gn-guinea.js";import"../../icon/gator/templates/flags/flag-gp-guadeloupe-2.js";import"../../icon/gator/templates/flags/flag-gp-guadeloupe.js";import"../../icon/gator/templates/flags/flag-gq-equatorial-guinea.js";import"../../icon/gator/templates/flags/flag-gr-greece.js";import"../../icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js";import"../../icon/gator/templates/flags/flag-gt-guatemala.js";import"../../icon/gator/templates/flags/flag-gu-guam.js";import"../../icon/gator/templates/flags/flag-gw-guinea-bissau.js";import"../../icon/gator/templates/flags/flag-gy-guyana.js";import"../../icon/gator/templates/flags/flag-hk-hong-kong.js";import"../../icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js";import"../../icon/gator/templates/flags/flag-hn-honduras.js";import"../../icon/gator/templates/flags/flag-hr-croatia-hrvatska.js";import"../../icon/gator/templates/flags/flag-ht-haiti.js";import"../../icon/gator/templates/flags/flag-hu-hungary.js";import"../../icon/gator/templates/flags/flag-id-indonesia.js";import"../../icon/gator/templates/flags/flag-ie-ireland.js";import"../../icon/gator/templates/flags/flag-il-isreal.js";import"../../icon/gator/templates/flags/flag-im-isle-of-man.js";import"../../icon/gator/templates/flags/flag-in-india.js";import"../../icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js";import"../../icon/gator/templates/flags/flag-iq-iraq.js";import"../../icon/gator/templates/flags/flag-ir-iran.js";import"../../icon/gator/templates/flags/flag-is-iceland.js";import"../../icon/gator/templates/flags/flag-it-italy.js";import"../../icon/gator/templates/flags/flag-je-jersey.js";import"../../icon/gator/templates/flags/flag-jm-jamaica.js";import"../../icon/gator/templates/flags/flag-jo-jordan.js";import"../../icon/gator/templates/flags/flag-jp-japan.js";import"../../icon/gator/templates/flags/flag-ke-kenia.js";import"../../icon/gator/templates/flags/flag-kg-kyrgyzstan.js";import"../../icon/gator/templates/flags/flag-kh-cambodia.js";import"../../icon/gator/templates/flags/flag-ki--kiribati.js";import"../../icon/gator/templates/flags/flag-km-comoros.js";import"../../icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js";import"../../icon/gator/templates/flags/flag-kp-korea-north.js";import"../../icon/gator/templates/flags/flag-kr-korea-south.js";import"../../icon/gator/templates/flags/flag-kw-kuwait.js";import"../../icon/gator/templates/flags/flag-ky-cayman-islands.js";import"../../icon/gator/templates/flags/flag-kz-kazakhstan.js";import"../../icon/gator/templates/flags/flag-la-laos.js";import"../../icon/gator/templates/flags/flag-lb-lebanon.js";import"../../icon/gator/templates/flags/flag-lc-saint-lucia.js";import"../../icon/gator/templates/flags/flag-li-liechtenstein.js";import"../../icon/gator/templates/flags/flag-lk-sri-lanka.js";import"../../icon/gator/templates/flags/flag-lr-liberia.js";import"../../icon/gator/templates/flags/flag-ls-lesotho.js";import"../../icon/gator/templates/flags/flag-lt-lithuania.js";import"../../icon/gator/templates/flags/flag-lu-luxembourg.js";import"../../icon/gator/templates/flags/flag-lv-latvia.js";import"../../icon/gator/templates/flags/flag-ly-libya.js";import"../../icon/gator/templates/flags/flag-ma-morocco.js";import"../../icon/gator/templates/flags/flag-mc-monaco.js";import"../../icon/gator/templates/flags/flag-md-moldova.js";import"../../icon/gator/templates/flags/flag-me-montenegro.js";import"../../icon/gator/templates/flags/flag-mf-saint-martin.js";import"../../icon/gator/templates/flags/flag-mg-madagascar.js";import"../../icon/gator/templates/flags/flag-mh-marshall-islands.js";import"../../icon/gator/templates/flags/flag-mk-north-macedonia.js";import"../../icon/gator/templates/flags/flag-ml-mali.js";import"../../icon/gator/templates/flags/flag-mm-myanmar.js";import"../../icon/gator/templates/flags/flag-mn-mongolia.js";import"../../icon/gator/templates/flags/flag-mo-macao.js";import"../../icon/gator/templates/flags/flag-mp-northern-mariana-islands.js";import"../../icon/gator/templates/flags/flag-mq-martinique-2.js";import"../../icon/gator/templates/flags/flag-mq-martinique.js";import"../../icon/gator/templates/flags/flag-mr-mauritania.js";import"../../icon/gator/templates/flags/flag-ms-montserrat.js";import"../../icon/gator/templates/flags/flag-mt-malta.js";import"../../icon/gator/templates/flags/flag-mu-mauritius.js";import"../../icon/gator/templates/flags/flag-mv-maldives.js";import"../../icon/gator/templates/flags/flag-mw-malawi.js";import"../../icon/gator/templates/flags/flag-mx-mexico.js";import"../../icon/gator/templates/flags/flag-my-malaysia.js";import"../../icon/gator/templates/flags/flag-mz-mozambique.js";import"../../icon/gator/templates/flags/flag-na-namibia.js";import"../../icon/gator/templates/flags/flag-nc-new-caledonia.js";import"../../icon/gator/templates/flags/flag-ne-niger.js";import"../../icon/gator/templates/flags/flag-nf-norfolk-island.js";import"../../icon/gator/templates/flags/flag-ng-nigeria.js";import"../../icon/gator/templates/flags/flag-ni-nicaragua.js";import"../../icon/gator/templates/flags/flag-nl-netherlands.js";import"../../icon/gator/templates/flags/flag-no-norway.js";import"../../icon/gator/templates/flags/flag-np-nepal.js";import"../../icon/gator/templates/flags/flag-nr-nauru.js";import"../../icon/gator/templates/flags/flag-nu-niue.js";import"../../icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js";import"../../icon/gator/templates/flags/flag-om-oman.js";import"../../icon/gator/templates/flags/flag-pa-panama.js";import"../../icon/gator/templates/flags/flag-pe-peru.js";import"../../icon/gator/templates/flags/flag-pf-french-polynesia.js";import"../../icon/gator/templates/flags/flag-pg-papua-new-guinea.js";import"../../icon/gator/templates/flags/flag-ph-philippines.js";import"../../icon/gator/templates/flags/flag-pk-pakistan.js";import"../../icon/gator/templates/flags/flag-pl-poland.js";import"../../icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js";import"../../icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js";import"../../icon/gator/templates/flags/flag-pn-pitcairn-islands.js";import"../../icon/gator/templates/flags/flag-pr-puerto-rico.js";import"../../icon/gator/templates/flags/flag-ps-palestinian-territory.js";import"../../icon/gator/templates/flags/flag-pt-portugal.js";import"../../icon/gator/templates/flags/flag-pw-palau.js";import"../../icon/gator/templates/flags/flag-py-paraguay.js";import"../../icon/gator/templates/flags/flag-qa-qatar.js";import"../../icon/gator/templates/flags/flag-re-reunion.js";import"../../icon/gator/templates/flags/flag-ro-romania.js";import"../../icon/gator/templates/flags/flag-rs-srbia.js";import"../../icon/gator/templates/flags/flag-ru-russian-federation.js";import"../../icon/gator/templates/flags/flag-rw-rwanda.js";import"../../icon/gator/templates/flags/flag-sa-sudi-arabia.js";import"../../icon/gator/templates/flags/flag-sb-slomon-islands.js";import"../../icon/gator/templates/flags/flag-sc-sychelles.js";import"../../icon/gator/templates/flags/flag-sd-sdan.js";import"../../icon/gator/templates/flags/flag-se-seden.js";import"../../icon/gator/templates/flags/flag-sg-sngapore.js";import"../../icon/gator/templates/flags/flag-sh-sint-helena.js";import"../../icon/gator/templates/flags/flag-si-sovenia.js";import"../../icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js";import"../../icon/gator/templates/flags/flag-sk-sovakia.js";import"../../icon/gator/templates/flags/flag-sl-serra-leone.js";import"../../icon/gator/templates/flags/flag-sm-sn-marino.js";import"../../icon/gator/templates/flags/flag-sn-snegal.js";import"../../icon/gator/templates/flags/flag-so-smalia.js";import"../../icon/gator/templates/flags/flag-sr-sriname.js";import"../../icon/gator/templates/flags/flag-ss-south-sudan.js";import"../../icon/gator/templates/flags/flag-st-so-tome-and-principe.js";import"../../icon/gator/templates/flags/flag-sv-el-slvador.js";import"../../icon/gator/templates/flags/flag-sx-snt-maarten.js";import"../../icon/gator/templates/flags/flag-sy-sria.js";import"../../icon/gator/templates/flags/flag-sz-saziland.js";import"../../icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js";import"../../icon/gator/templates/flags/flag-td-chad.js";import"../../icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js";import"../../icon/gator/templates/flags/flag-tg-togo.js";import"../../icon/gator/templates/flags/flag-th-thailand.js";import"../../icon/gator/templates/flags/flag-tj-tajikistan.js";import"../../icon/gator/templates/flags/flag-tk-tokelau.js";import"../../icon/gator/templates/flags/flag-tl-timor-leste.js";import"../../icon/gator/templates/flags/flag-tm-turkmenistan.js";import"../../icon/gator/templates/flags/flag-tn-tunisia.js";import"../../icon/gator/templates/flags/flag-to-tonga.js";import"../../icon/gator/templates/flags/flag-tr-turkey.js";import"../../icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js";import"../../icon/gator/templates/flags/flag-tv-tuvalu.js";import"../../icon/gator/templates/flags/flag-tw-taiwan.js";import"../../icon/gator/templates/flags/flag-tz-tanzania.js";import"../../icon/gator/templates/flags/flag-ua-ukraine.js";import"../../icon/gator/templates/flags/flag-ug-uganda.js";import"../../icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js";import"../../icon/gator/templates/flags/flag-us-united-states.js";import"../../icon/gator/templates/flags/flag-uy-uruguay.js";import"../../icon/gator/templates/flags/flag-uz-uzbekistan.js";import"../../icon/gator/templates/flags/flag-va-vatican-city-state.js";import"../../icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js";import"../../icon/gator/templates/flags/flag-ve-venezuela.js";import"../../icon/gator/templates/flags/flag-vg-virgin-islands-british.js";import"../../icon/gator/templates/flags/flag-vi-virgin-islands-us.js";import"../../icon/gator/templates/flags/flag-vn-vietnam.js";import"../../icon/gator/templates/flags/flag-vu-vanuatu.js";import"../../icon/gator/templates/flags/flag-wf-wallis-and-futuna.js";import"../../icon/gator/templates/flags/flag-ws-smoa.js";import"../../icon/gator/templates/flags/flag-ye-yemen.js";import"../../icon/gator/templates/flags/flag-yt-unf-mayotte.js";import"../../icon/gator/templates/flags/flag-za-south-africa.js";import"../../icon/gator/templates/flags/flag-zm-zambia.js";import"../../icon/gator/templates/flags/flag-zw-zimbabwe.js";import"../../icon/gator/templates/flame.js";import"../../icon/gator/templates/flash-off.js";import"../../icon/gator/templates/flash-on.js";import"../../icon/gator/templates/folder.js";import"../../icon/gator/templates/gauge.js";import"../../icon/gator/templates/grid-four.js";import"../../icon/gator/templates/grid-nine.js";import"../../icon/gator/templates/hammer.js";import"../../icon/gator/templates/hand-pointing.js";import"../../icon/gator/templates/heart.js";import"../../icon/gator/templates/home-door.js";import"../../icon/gator/templates/home-finance-arrow.js";import"../../icon/gator/templates/home-finance.js";import"../../icon/gator/templates/home-search.js";import"../../icon/gator/templates/house-simple.js";import"../../icon/gator/templates/house.js";import"../../icon/gator/templates/inbox.js";import"../../icon/gator/templates/info.js";import"../../icon/gator/templates/instagram-logo.js";import"../../icon/gator/templates/interest-rate.js";import"../../icon/gator/templates/invoice.js";import"../../icon/gator/templates/kanban.js";import"../../icon/gator/templates/label.js";import"../../icon/gator/templates/laptop.js";import"../../icon/gator/templates/layout.js";import"../../icon/gator/templates/lightbulb-filament.js";import"../../icon/gator/templates/lightbulb.js";import"../../icon/gator/templates/link.js";import"../../icon/gator/templates/linkedin-logo.js";import"../../icon/gator/templates/list-star.js";import"../../icon/gator/templates/list.js";import"../../icon/gator/templates/loading-spinner-gif.js";import"../../icon/gator/templates/loading.js";import"../../icon/gator/templates/lock.js";import"../../icon/gator/templates/magic-wand.js";import"../../icon/gator/templates/mail-open.js";import"../../icon/gator/templates/mail.js";import"../../icon/gator/templates/mailbox.js";import"../../icon/gator/templates/map.js";import"../../icon/gator/templates/menu-hamburger.js";import"../../icon/gator/templates/microsoft-excel-logo.js";import"../../icon/gator/templates/microsoft-outlook-logo.js";import"../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../icon/gator/templates/microsoft-teams-logo.js";import"../../icon/gator/templates/microsoft-word-logo.js";import"../../icon/gator/templates/minus-circle.js";import"../../icon/gator/templates/minus-square.js";import"../../icon/gator/templates/minus.js";import"../../icon/gator/templates/mobile-phone-2.js";import"../../icon/gator/templates/monitor.js";import"../../icon/gator/templates/move-doc.js";import"../../icon/gator/templates/move.js";import"../../icon/gator/templates/music.js";import"../../icon/gator/templates/number-0.js";import"../../icon/gator/templates/number-1.js";import"../../icon/gator/templates/number-10.js";import"../../icon/gator/templates/number-2.js";import"../../icon/gator/templates/number-3.js";import"../../icon/gator/templates/number-4.js";import"../../icon/gator/templates/number-5.js";import"../../icon/gator/templates/number-6.js";import"../../icon/gator/templates/number-7.js";import"../../icon/gator/templates/number-8.js";import"../../icon/gator/templates/number-9.js";import"../../icon/gator/templates/overflow-menu.js";import"../../icon/gator/templates/paper-airplane.js";import"../../icon/gator/templates/paperclip.js";import"../../icon/gator/templates/pause-circle.js";import"../../icon/gator/templates/pause.js";import"../../icon/gator/templates/payments/payment-amazon-pay.js";import"../../icon/gator/templates/payments/payment-amex.js";import"../../icon/gator/templates/payments/payment-apple-pay.js";import"../../icon/gator/templates/payments/payment-discover.js";import"../../icon/gator/templates/payments/payment-google-pay.js";import"../../icon/gator/templates/payments/payment-mastercard.js";import"../../icon/gator/templates/payments/payment-visa.js";import"../../icon/gator/templates/pen.js";import"../../icon/gator/templates/pencil-paper.js";import"../../icon/gator/templates/pencil.js";import"../../icon/gator/templates/people-multiple.js";import"../../icon/gator/templates/people-share.js";import"../../icon/gator/templates/percent.js";import"../../icon/gator/templates/person-add.js";import"../../icon/gator/templates/person-check.js";import"../../icon/gator/templates/person-lock.js";import"../../icon/gator/templates/person.js";import"../../icon/gator/templates/phone-alert.js";import"../../icon/gator/templates/phone-mobile.js";import"../../icon/gator/templates/phone.js";import"../../icon/gator/templates/picture.js";import"../../icon/gator/templates/pin.js";import"../../icon/gator/templates/pinterest-logo.js";import"../../icon/gator/templates/play-circle.js";import"../../icon/gator/templates/play.js";import"../../icon/gator/templates/plugs.js";import"../../icon/gator/templates/plugs-connected.js";import"../../icon/gator/templates/plus-circle.js";import"../../icon/gator/templates/plus.js";import"../../icon/gator/templates/printer.js";import"../../icon/gator/templates/question-chat-bubble.js";import"../../icon/gator/templates/question-circle.js";import"../../icon/gator/templates/question-mark.js";import"../../icon/gator/templates/radio-selected.js";import"../../icon/gator/templates/radio.js";import"../../icon/gator/templates/receipt.js";import"../../icon/gator/templates/restricted-filled.js";import"../../icon/gator/templates/restricted.js";import"../../icon/gator/templates/robot.js";import"../../icon/gator/templates/sandals.js";import"../../icon/gator/templates/save.js";import"../../icon/gator/templates/screen.js";import"../../icon/gator/templates/search.js";import"../../icon/gator/templates/selection.js";import"../../icon/gator/templates/send-filled.js";import"../../icon/gator/templates/send.js";import"../../icon/gator/templates/settings.js";import"../../icon/gator/templates/share-1.js";import"../../icon/gator/templates/share-2.js";import"../../icon/gator/templates/shield-lock.js";import"../../icon/gator/templates/shield-warning.js";import"../../icon/gator/templates/sidebar-simple.js";import"../../icon/gator/templates/sidebar.js";import"../../icon/gator/templates/smart-home.js";import"../../icon/gator/templates/sort-arrow-solid-down.js";import"../../icon/gator/templates/sort-arrow-solid-left.js";import"../../icon/gator/templates/sort-arrow-solid-right.js";import"../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../icon/gator/templates/sort-arrow-solid-up.js";import"../../icon/gator/templates/sort-reverse-variant.js";import"../../icon/gator/templates/sort-variant.js";import"../../icon/gator/templates/sparkle-filled.js";import"../../icon/gator/templates/sparkle.js";import"../../icon/gator/templates/speech-bubble.js";import"../../icon/gator/templates/square-split-horizontal.js";import"../../icon/gator/templates/square-split-vertical.js";import"../../icon/gator/templates/square.js";import"../../icon/gator/templates/stack.js";import"../../icon/gator/templates/stamp.js";import"../../icon/gator/templates/star-four-filled.js";import"../../icon/gator/templates/star-four.js";import"../../icon/gator/templates/star.js";import"../../icon/gator/templates/stopwatch.js";import"../../icon/gator/templates/sun.js";import"../../icon/gator/templates/sync.js";import"../../icon/gator/templates/tab-arrows.js";import"../../icon/gator/templates/table.js";import"../../icon/gator/templates/target.js";import"../../icon/gator/templates/text-aa.js";import"../../icon/gator/templates/thumbs-down.js";import"../../icon/gator/templates/thumbs-up.js";import"../../icon/gator/templates/tools.js";import"../../icon/gator/templates/touch-id.js";import"../../icon/gator/templates/trash.js";import"../../icon/gator/templates/trend-up.js";import"../../icon/gator/templates/twitter-logo.js";import"../../icon/gator/templates/unlink.js";import"../../icon/gator/templates/unlock.js";import"../../icon/gator/templates/upload.js";import"../../icon/gator/templates/video.js";import"../../icon/gator/templates/waffle.js";import"../../icon/gator/templates/warning-circle.js";import"../../icon/gator/templates/warning-diamond.js";import"../../icon/gator/templates/warning-filled.js";import"../../icon/gator/templates/warning-octagon.js";import"../../icon/gator/templates/warning.js";import"../../icon/gator/templates/wet-sign.js";import"../../icon/gator/templates/wifi-off.js";import"../../icon/gator/templates/wifi.js";import"../../icon/gator/templates/x-logo.js";import"../../icon/gator/templates/yelp-logo.js";import"../../icon/gator/templates/youtube-logo.js";import"../../icon/gator/templates/zillow-logo.js";import"../../icon-button/gator/icon-button.gator.js";import"../../popover/gator/popover.gator.js";import"../../checkbox-group/checkbox-group.gator.js";import"../../radio-group/radio-group.gator.js";import"../../button/gator/button.gator.js";import"../../chip/gator/chip.gator.js";import"../../input/gator/input-search/input-search.gator.js";import"../../skip-link/gator/base/skip-link.gator.js";import{unsafeCSS as C}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var _=Object.defineProperty,R=Object.getOwnPropertyDescriptor,d=(t,e,i,r)=>{for(var o=r>1?void 0:r?R(e,i):e,l=t.length-1,s;l>=0;l--)(s=t[l])&&(o=(r?s(e,i,o):s(o))||o);return r&&o&&_(e,i,o),o};let m=class extends F{constructor(){super(...arguments),this.elevated=!1,this.includePagination=!1,this.skeleton=!1,this.sortField=null,this.sortDirection=null,this.filterValues={},this.selectedRows=[],this._currentPage=1,this._sortField=null,this._sortDirection=null,this._hoveredHeaderColumnField=null,this._pendingFilterValues={},this._filterSearchQuery={},this.renderHeaderFilterPopover=(t,e)=>{const i=t.filterOptions??[],r=(this._filterSearchQuery[t.field]??"").toLowerCase(),o=r?i.filter(h=>h.label.toLowerCase().includes(r)):i,l=this.hasActiveFilter(t),s=t.filterMultiselect===!0,n=this.getEffectivePending(t),a=o.map(h=>({title:h.label,value:String(h.value)})),c=s?n.join(";"):"",g=s?"":n||"";return p`
|
|
2
|
+
<span class="gator-table-header-filter-trigger-wrap ${e?"gator-table-header-filter-trigger-visible":""}">
|
|
3
|
+
<ngc-icon-button
|
|
4
|
+
id="filter-trigger-${t.field}"
|
|
5
|
+
icon-name="filters-2"
|
|
6
|
+
size="xsmall"
|
|
7
|
+
icon-aria-label="${u("Filter by")} ${t.name}"
|
|
8
|
+
class="${l?"gator-table-header-filter-icon-active":""}"
|
|
9
|
+
></ngc-icon-button>
|
|
10
|
+
<ngc-popover
|
|
11
|
+
reference-id="filter-trigger-${t.field}"
|
|
12
|
+
title="${u("Filter")}"
|
|
13
|
+
size="small"
|
|
14
|
+
@closed="${()=>this.handleFilterPopoverClosed(t)}"
|
|
15
|
+
>
|
|
16
|
+
<div slot="content" class="gator-table-filter-popover-content">
|
|
17
|
+
${i.length>10?p`
|
|
18
|
+
<ngc-input-search
|
|
19
|
+
placeholder="${u("Search")}"
|
|
20
|
+
.value="${this._filterSearchQuery[t.field]??""}"
|
|
21
|
+
@input="${h=>this.handleFilterSearchInput(h,t)}"
|
|
22
|
+
class="gator-table-filter-popover-search"
|
|
23
|
+
></ngc-input-search>
|
|
24
|
+
`:f}
|
|
25
|
+
${s?p`
|
|
26
|
+
<ngc-checkbox-group
|
|
27
|
+
.options="${a}"
|
|
28
|
+
.value="${c}"
|
|
29
|
+
aria-label="${u("Filter by")} ${t.name}"
|
|
30
|
+
@change="${h=>this.handleFilterCheckboxGroupChange(h,t)}"
|
|
31
|
+
></ngc-checkbox-group>
|
|
32
|
+
`:p`
|
|
33
|
+
<ngc-radio-group
|
|
34
|
+
.options="${a}"
|
|
35
|
+
.value="${g}"
|
|
36
|
+
aria-label="${u("Filter by")} ${t.name}"
|
|
37
|
+
@change="${h=>this.handleFilterRadioGroupChange(h,t)}"
|
|
38
|
+
></ngc-radio-group>
|
|
39
|
+
`}
|
|
40
|
+
</div>
|
|
41
|
+
<div slot="footer" class="gator-table-filter-popover-footer">
|
|
42
|
+
<ngc-button variant="primary" @click="${()=>this.handleFilterPopoverApply(t)}">${u("Apply")}</ngc-button>
|
|
43
|
+
<ngc-button variant="base" @click="${()=>this.handleFilterPopoverClear(t)}">${u("Clear")}</ngc-button>
|
|
44
|
+
</div>
|
|
45
|
+
</ngc-popover>
|
|
46
|
+
</span>
|
|
47
|
+
`},this.handleClearAllFilters=()=>{if(!this.columns?.length||!this.filterValues)return;const t=e=>e.filterOptions??[];for(const e of this.columns){if(!e.filterable||t(e).length===0)continue;const i=this.filterValues[e.field];if(i==null)continue;if(e.filterMultiselect===!0?i.length>0:i!==""){const o=e.filterMultiselect===!0?[]:"";this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:e.field,value:o}}))}}this.requestUpdate()}}updated(t){super.updated(t),t.has("data")&&queueMicrotask(()=>{this.selectedRows=this.data.filter(e=>e.selected&&!e.isTableHeader)})}render(){if(!this.skeleton&&!this.columns)return null;const t=this.skeleton?this._skeletonLoaderColumns:this.columns;return this.renderWrapper(this.getTableHeader(t),this.getTableBody(t,this.displayedRowData))}get _skeletonLoaderColumns(){const t=this.columns?.length||6;let e=[];for(let i=0;i<t;i++)e=e.concat({field:`skeleton-loader-${i}`,name:`skeleton-loader-${i}`});return e}get tableElevatedClass(){return this.elevated?"gator-table-elevated":""}get showBulkControls(){return this.selectable&&this.selectedRows.length>0}renderWrapper(t,e){const i=this.getActiveFilterChips();return p`
|
|
2
48
|
<ngc-table-bulk-controls
|
|
3
49
|
?visible="${this.showBulkControls}"
|
|
4
50
|
.selectedRows="${this.selectedRows.length}"
|
|
@@ -8,14 +54,32 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
|
|
|
8
54
|
>
|
|
9
55
|
<slot name="bulk-controls"></slot>
|
|
10
56
|
</ngc-table-bulk-controls>
|
|
57
|
+
${!this.skeleton&&i.length>0?p`
|
|
58
|
+
<div class="gator-table-filter-chips" role="region" aria-label="${u("Active filters")}">
|
|
59
|
+
${i.map(({column:r,value:o,label:l})=>p`
|
|
60
|
+
<ngc-chip
|
|
61
|
+
dismissible
|
|
62
|
+
size="small"
|
|
63
|
+
@dismiss="${()=>this.handleFilterChipDismiss(r,o)}"
|
|
64
|
+
>${r.name}: ${l}</ngc-chip>
|
|
65
|
+
`)}
|
|
66
|
+
${i.length>1?p`
|
|
67
|
+
<button
|
|
68
|
+
type="button"
|
|
69
|
+
class="gator-table-filter-chips-clear-all"
|
|
70
|
+
@click="${this.handleClearAllFilters}"
|
|
71
|
+
>${u("Clear all")}</button>
|
|
72
|
+
`:f}
|
|
73
|
+
</div>
|
|
74
|
+
`:f}
|
|
11
75
|
<table
|
|
12
76
|
class="gator-table ${this.tableElevatedClass}"
|
|
13
77
|
role="grid"
|
|
14
78
|
aria-labelledby="${this.tableAriaLabelledBy}"
|
|
15
79
|
>
|
|
16
|
-
${
|
|
80
|
+
${t} ${e}
|
|
17
81
|
</table>
|
|
18
|
-
${this.includePagination&&!this.skeleton?
|
|
82
|
+
${this.includePagination&&!this.skeleton?p`
|
|
19
83
|
<ngc-table-pagination
|
|
20
84
|
items-per-page="${this.itemsPerPage}"
|
|
21
85
|
total-items="${this.data.length}"
|
|
@@ -24,92 +88,118 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
|
|
|
24
88
|
@itemsperpagechanged="${this.handleItemsPerPageChanged}"
|
|
25
89
|
></ngc-table-pagination>
|
|
26
90
|
`:f}
|
|
27
|
-
`}handlePageChanged(
|
|
91
|
+
`}handlePageChanged(t){this._currentPage=t.detail.page}handleItemsPerPageChanged(t){this.itemsPerPage=t.detail.itemsPerPage}getTableHeader(t){const e=t.map(i=>this.getTableHeaderColumn(i));return!this.skeleton&&this.selectable&&e.unshift(p`
|
|
28
92
|
<th id="col-select" scope="col">
|
|
29
93
|
<ngc-checkbox
|
|
30
|
-
title-text="${
|
|
94
|
+
title-text="${u("Select All")}"
|
|
31
95
|
hide-label
|
|
32
96
|
?selected="${this.selectedRows.length===this.data.length}"
|
|
33
|
-
@change="${
|
|
97
|
+
@change="${i=>this.handleSelectAll(i)}"
|
|
34
98
|
></ngc-checkbox>
|
|
35
|
-
</th>`),
|
|
99
|
+
</th>`),p`
|
|
36
100
|
<thead role="rowgroup">
|
|
37
101
|
<tr role="row">
|
|
38
|
-
${
|
|
102
|
+
${e}
|
|
39
103
|
</tr>
|
|
40
104
|
</thead>
|
|
41
|
-
`}handleSelectAll(
|
|
105
|
+
`}handleSelectAll(t){const e=t.detail.selected;e?(this.data.forEach(i=>{i.isTableHeader||(i.selected=!0)}),this.selectedRows=this.data.filter(i=>!i.isTableHeader)):(this.data.forEach(i=>{i.selected=!1}),this.selectedRows=[]),this.dispatchEvent(new CustomEvent("selectall",{bubbles:!0,composed:!0,detail:{selectedRows:this.selectedRows,selected:e}})),this.requestUpdate()}get effectiveSortField(){return this.sortField??this._sortField}get effectiveSortDirection(){return this.sortField!=null?this.sortDirection??"asc":this._sortDirection}getSortIcon(t){return this.effectiveSortField===t.field?this.effectiveSortDirection==="asc"?"arrow-up":"arrow-down":"arrows-down-up"}getSortAriaSort(t){return this.effectiveSortField!==t.field?"none":this.effectiveSortDirection==="asc"?"ascending":"descending"}handleSortColumn(t){const e=this.effectiveSortField===t.field&&this.effectiveSortDirection==="asc"?"desc":"asc";this.sortField==null&&(this._sortField=t.field,this._sortDirection=e),this.dispatchEvent(new CustomEvent("sort",{bubbles:!0,composed:!0,detail:{field:t.field,direction:e}})),this.requestUpdate()}getTableHeaderColumn(t){const e=t.field.startsWith("skeleton-loader"),i=p`
|
|
42
106
|
<ngc-skeleton-loader
|
|
43
107
|
full-width
|
|
44
108
|
height="24"
|
|
45
109
|
rounded
|
|
46
110
|
></ngc-skeleton-loader>
|
|
47
|
-
`,
|
|
48
|
-
|
|
49
|
-
|
|
111
|
+
`,r=`col-${t.field}`,o=!this.skeleton&&t.sortable===!0,l=!this.skeleton&&t.filterable===!0&&t.filterOptions?.length,s=o?this.getSortAriaSort(t):void 0,n=o&&this.effectiveSortField===t.field,a=l&&this.hasActiveFilter(t),c=o||l,g=o?p`
|
|
112
|
+
<div
|
|
113
|
+
class="gator-table-header-sort-trigger"
|
|
114
|
+
role="button"
|
|
115
|
+
tabindex="0"
|
|
116
|
+
aria-label="${u("Sort by")} ${t.name}"
|
|
117
|
+
@click="${()=>this.handleSortColumn(t)}"
|
|
118
|
+
@keydown="${v=>v.key==="Enter"||v.key===" "?(v.preventDefault(),this.handleSortColumn(t)):null}"
|
|
119
|
+
>
|
|
120
|
+
<span class="gator-table-header-label">${t.name}</span>
|
|
121
|
+
<span class="gator-table-sort-icon-wrap" aria-hidden="true">
|
|
122
|
+
<ngc-icon name="${this.getSortIcon(t)}" class="gator-table-sort-icon" size="x-small"></ngc-icon>
|
|
123
|
+
</span>
|
|
124
|
+
</div>
|
|
125
|
+
`:p`<span class="gator-table-header-label">${t.name}</span>`,h=!!(l&&(this._hoveredHeaderColumnField===t.field||a||this.isFilterPopoverOpen(t))),k=e?i:p`
|
|
126
|
+
<div class="gator-table-header-cell-inner">
|
|
127
|
+
${g}
|
|
128
|
+
${l?this.renderHeaderFilterPopover(t,h):f}
|
|
129
|
+
</div>
|
|
130
|
+
`,w=[n?"gator-table-header-cell-sort-active":"",a?"gator-table-header-cell-filter-active":"",c?"gator-table-header-cell-interactive":""].filter(Boolean).join(" ");return p`
|
|
131
|
+
<th
|
|
132
|
+
id="${r}"
|
|
133
|
+
scope="col"
|
|
134
|
+
aria-sort="${s??f}"
|
|
135
|
+
class="${w}"
|
|
136
|
+
@mouseenter="${l||o?()=>this._hoveredHeaderColumnField=t.field:f}"
|
|
137
|
+
@mouseleave="${l||o?()=>this._hoveredHeaderColumnField=null:f}"
|
|
138
|
+
>
|
|
139
|
+
${k}
|
|
50
140
|
</th>
|
|
51
|
-
`}
|
|
52
|
-
${
|
|
53
|
-
`}getCategoryBody(e
|
|
54
|
-
<tbody role="rowgroup" ${
|
|
55
|
-
${
|
|
56
|
-
${
|
|
57
|
-
${
|
|
141
|
+
`}getEffectivePending(t){const e=this._pendingFilterValues[t.field];return e!==void 0?e:this.filterValues[t.field]??(t.filterMultiselect===!0?[]:"")}getFilterPopoverForColumn(t){return this.shadowRoot?.querySelector(`ngc-popover[reference-id="filter-trigger-${t.field}"]`)??null}isFilterPopoverOpen(t){return this.getFilterPopoverForColumn(t)?.isOpen===!0}handleFilterPopoverClosed(t){this._filterSearchQuery={...this._filterSearchQuery,[t.field]:""}}handleFilterSearchInput(t,e){const i=t.detail?.value??"";this._filterSearchQuery={...this._filterSearchQuery,[e.field]:i},this.requestUpdate()}handleFilterCheckboxGroupChange(t,e){const i=t.detail??"",r=i?i.split(";").filter(Boolean):[];this._pendingFilterValues={...this._pendingFilterValues,[e.field]:r},this.requestUpdate()}handleFilterRadioGroupChange(t,e){const i=t.detail??"";this._pendingFilterValues={...this._pendingFilterValues,[e.field]:i},this.requestUpdate()}handleFilterPopoverApply(t){const e=this.getEffectivePending(t);this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:t.field,value:e}}));const i={...this._pendingFilterValues};delete i[t.field],this._pendingFilterValues=i,this.getFilterPopoverForColumn(t)?.hidePopover?.(),this.requestUpdate()}handleFilterPopoverClear(t){const i=t.filterMultiselect===!0?[]:"";this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:t.field,value:i}}));const r={...this._pendingFilterValues};delete r[t.field],this._pendingFilterValues=r,this.getFilterPopoverForColumn(t)?.hidePopover?.(),this.requestUpdate()}hasActiveFilter(t){const e=this.filterValues[t.field];return e==null?!1:t.filterMultiselect===!0?e.length>0:e!==""}getActiveFilterChips(){if(!this.columns?.length||!this.filterValues)return[];const t=[],e=i=>i.filterOptions??[];for(const i of this.columns){if(!i.filterable||e(i).length===0)continue;const r=this.filterValues[i.field];if(r==null)continue;if(i.filterMultiselect===!0){const l=r;for(const s of l){const n=e(i).find(a=>String(a.value)===s);t.push({column:i,value:s,label:n?.label??s})}}else{const l=r;if(l==="")continue;const s=e(i).find(n=>String(n.value)===l);t.push({column:i,value:l,label:s?.label??l})}}return t}handleFilterChipDismiss(t,e){const i=t.filterMultiselect===!0,r=this.filterValues[t.field],o=i?(r||[]).filter(l=>l!==e):"";this.dispatchEvent(new CustomEvent("filter",{bubbles:!0,composed:!0,detail:{field:t.field,value:o}})),this.requestUpdate()}getTableBody(t,e){const i=[];let r={rows:[]};return e.forEach(o=>{o.isTableHeader?((r.rows.length>0||r.header)&&i.push(r),r={header:o,rows:[]}):r.rows.push(o)}),(r.rows.length>0||r.header)&&i.push(r),i.length===0&&e.length>0&&i.push({rows:e}),p`
|
|
142
|
+
${i.map(o=>this.getCategoryBody(o,t))}
|
|
143
|
+
`}getCategoryBody(t,e){let i="",r="",o="";t.header&&(i=t.header.headerText||t.header.categoryText||t.header.name||"Category",o=`category-${i.toLowerCase().replace(/\s+/g,"-")}`,r=o);const l=t.header?this.getTableHeaderRow(e,t.header):"",s=t.rows.map(c=>this.getTableBodyRow(c,e,o,this.data.indexOf(c))),n=e.some(c=>c.includedInTotals===!0),a=t.rows.length>0&&n?this.getTotalRow(t.rows,e,o):"";return p`
|
|
144
|
+
<tbody role="rowgroup" ${r?p`aria-labelledby="${r}"`:""}>
|
|
145
|
+
${l}
|
|
146
|
+
${s}
|
|
147
|
+
${a}
|
|
58
148
|
</tbody>
|
|
59
|
-
`}getTotalRow(e,
|
|
149
|
+
`}getTotalRow(t,e,i){const r={};e.forEach(a=>{r[a.field]=0,a.includedInTotals&&t.forEach(c=>{const g=this.parseNumericValue(c[a.field]);g!==null&&(r[a.field]+=g)})});const o=i?`${i}-total`:"total-row",l=p`
|
|
60
150
|
<th
|
|
61
|
-
id="${
|
|
151
|
+
id="${o}"
|
|
62
152
|
scope="row"
|
|
63
153
|
class="gator-table-total-label"
|
|
64
154
|
>
|
|
65
155
|
Total
|
|
66
156
|
</th>
|
|
67
|
-
`,
|
|
157
|
+
`,s=e.map(a=>{const c=`col-${a.field}`,g=[o,i,c].filter(Boolean).join(" ");return a.includedInTotals?p`
|
|
68
158
|
<td
|
|
69
159
|
role="gridcell"
|
|
70
|
-
headers="${
|
|
71
|
-
class="gator-table-total-cell ${this.getCellAlignClass(
|
|
160
|
+
headers="${g}"
|
|
161
|
+
class="gator-table-total-cell ${this.getCellAlignClass(a)}"
|
|
72
162
|
>
|
|
73
|
-
${this.formatTotal(
|
|
163
|
+
${this.formatTotal(r[a.field],a)}
|
|
74
164
|
</td>
|
|
75
|
-
`:
|
|
165
|
+
`:p`
|
|
76
166
|
<td
|
|
77
167
|
role="gridcell"
|
|
78
|
-
class="gator-table-total-cell ${this.getCellAlignClass(
|
|
168
|
+
class="gator-table-total-cell ${this.getCellAlignClass(a)}"
|
|
79
169
|
>
|
|
80
170
|
|
|
81
171
|
</td>
|
|
82
|
-
`}),
|
|
172
|
+
`}),n=this.selectable?[l,...s]:[l,...s.slice(1)];return p`
|
|
83
173
|
<tr role="row" class="gator-table-total-row">
|
|
84
|
-
${
|
|
174
|
+
${n}
|
|
85
175
|
</tr>
|
|
86
|
-
`}parseNumericValue(
|
|
87
|
-
<td role="gridcell" class="gator-table-checkbox-column" headers="${
|
|
176
|
+
`}parseNumericValue(t){if(typeof t=="number")return t;if(typeof t=="string"){const e=t.replace(/[^0-9.-]/g,""),i=parseFloat(e);if(!isNaN(i))return i}return null}formatTotal(t,e){if(typeof e.cellRenderer=="function"){const r=e.cellConfig?.decimalPlaces??e.decimalPlaces??2;return e.cellRenderer({[e.field]:t.toFixed(r)})}return S(t,e.cellConfig,e.decimalPlaces)}getTableBodyRow(t,e,i,r){const o=e.map(l=>this.getTableBodyCell(t,l,i,r??0));if(!this.skeleton&&this.selectable){const l=i?`col-select ${i}`:"col-select";o.unshift(p`
|
|
177
|
+
<td role="gridcell" class="gator-table-checkbox-column" headers="${l}">
|
|
88
178
|
<ngc-checkbox
|
|
89
179
|
label="test"
|
|
90
|
-
?selected="${
|
|
91
|
-
@change="${
|
|
92
|
-
id="checkbox-${
|
|
180
|
+
?selected="${t.selected}"
|
|
181
|
+
@change="${s=>this.handleTableBodyRowSelected(s,t)}"
|
|
182
|
+
id="checkbox-${t.id||Math.random().toString(36).substring(2,11)}"
|
|
93
183
|
></ngc-checkbox>
|
|
94
|
-
</td>`)}return
|
|
95
|
-
<tr role="row" class="${this.selectable&&
|
|
96
|
-
${
|
|
184
|
+
</td>`)}return p`
|
|
185
|
+
<tr role="row" class="${this.selectable&&t.selected?"gator-table-row-selected":""}">
|
|
186
|
+
${o}
|
|
97
187
|
</tr>
|
|
98
|
-
`}getTableHeaderRow(e
|
|
188
|
+
`}getTableHeaderRow(t,e){const i=this.selectable?t.length+1:t.length,r=e.headerText||e.categoryText||e.name||"Category";return p`
|
|
99
189
|
<tr role="row" class="gator-table-category-header">
|
|
100
|
-
<th role="rowheader" colspan="${
|
|
101
|
-
id="${`category-${
|
|
102
|
-
${
|
|
190
|
+
<th role="rowheader" colspan="${i}" scope="rowgroup" class="gator-table-header-cell"
|
|
191
|
+
id="${`category-${r.toLowerCase().replace(/\s+/g,"-")}`}">
|
|
192
|
+
${r}
|
|
103
193
|
</th>
|
|
104
194
|
</tr>
|
|
105
|
-
`}handleTableBodyRowSelected(e
|
|
195
|
+
`}handleTableBodyRowSelected(t,e){t.detail.selected?(e.selected=!0,this.selectedRows.push(e),this.addSkipLinkToBulkActions(t.target)):(e.selected=!1,this.selectedRows=this.selectedRows.filter(i=>i!==e),this.removeSkipLinkToBulkActions(t.target)),this.dispatchEvent(new CustomEvent("rowselected",{bubbles:!0,composed:!0,detail:{data:e,selectedRows:this.selectedRows}})),this.requestUpdate()}addSkipLinkToBulkActions(t){t.parentNode?.querySelector("ngc-skip-link")||t.parentNode?.insertBefore(this.getSkipToBulkActionsMarkup(t),t)}getSkipToBulkActionsMarkup(t){const e=document.createElement("ngc-skip-link");return e.target=this.shadowRoot?.querySelector("ngc-table-bulk-controls")||"",e.text=u("Jump to table actions"),e.referenceElement=t,e.placement="top-start",e.xOffset=4,e.yOffset=-12,e.onblur=this.removeSkipLinkToBulkActions.bind(this,t),e}removeSkipLinkToBulkActions(t){t.parentNode?.querySelector("ngc-skip-link")?.remove()}get displayedRowData(){if(this.skeleton){let r=[];for(let o=0;o<5;o++)r=r.concat({skeleton:!0});return r}if(!this.includePagination)return this.data;const t=(this._currentPage-1)*this.itemsPerPage,e=t+this.itemsPerPage;return this.data.slice(t,e)}getTableBodyCell(t,e,i,r=0){const o=!!t.skeleton,l=p`
|
|
106
196
|
<ngc-skeleton-loader
|
|
107
197
|
full-width
|
|
108
198
|
height="24"
|
|
109
199
|
rounded
|
|
110
200
|
></ngc-skeleton-loader>
|
|
111
|
-
`,
|
|
112
|
-
<td role="gridcell" headers="${
|
|
201
|
+
`,s=`col-${e.field}`,n=i?`${s} ${i}`:s,a=o?this.getCellAlignClass(e):"",c=o?l:this.renderCellByType(t,e,r,i??"");return p`
|
|
202
|
+
<td role="gridcell" headers="${n}" class="${a}">
|
|
113
203
|
${c}
|
|
114
204
|
</td>
|
|
115
|
-
`}getCellAlignClass(
|
|
205
|
+
`}getCellAlignClass(t){return`gator-table-cell-${t.cellConfig?.align??"left"}`}renderCellByType(t,e,i,r){const o=s=>this.handleCellChange(s),l=s=>this.handleCellClick(s);switch(e.cellType){case"chip":return p`<ngc-table-cell-chip .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-chip>`;case"avatar":return p`<ngc-table-cell-avatar .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-avatar>`;case"checkbox":return p`<ngc-table-cell-checkbox .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-checkbox>`;case"text-link":return p`<ngc-table-cell-text-link .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-text-link>`;case"button":return p`<ngc-table-cell-button .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-button>`;case"icon-button":return p`<ngc-table-cell-icon-button .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-icon-button>`;case"input-dropdown":return p`<ngc-table-cell-input-dropdown .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-input-dropdown>`;case"input-text":return p`<ngc-table-cell-input-text .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-input-text>`;default:return p`<ngc-table-cell-text .rowData="${t}" .column="${e}" .rowIndex="${i}" .categoryHeaderId="${r}" @cellchange="${o}" @cellclick="${l}"></ngc-table-cell-text>`}}handleCellChange(t){t.stopPropagation();const{rowIndex:e,field:i,value:r}=t.detail??{};this.dispatchEvent(new CustomEvent("cellchange",{bubbles:!0,composed:!0,detail:{rowIndex:e,field:i,value:r}}))}handleCellClick(t){t.stopPropagation();const{rowIndex:e,field:i,value:r}=t.detail??{};this.dispatchEvent(new CustomEvent("cellclick",{bubbles:!0,composed:!0,detail:{rowIndex:e,field:i,...r!==void 0&&{value:r}}}))}};m.styles=[C(T),C(P),C(x)];d([$({type:Boolean})],m.prototype,"elevated",2);d([$({type:Boolean,attribute:"include-pagination"})],m.prototype,"includePagination",2);d([$({type:Boolean})],m.prototype,"skeleton",2);d([$({type:String,attribute:"sort-field"})],m.prototype,"sortField",2);d([$({type:String,attribute:"sort-direction"})],m.prototype,"sortDirection",2);d([$({type:Object,attribute:!1})],m.prototype,"filterValues",2);d([b()],m.prototype,"selectedRows",2);d([b()],m.prototype,"_currentPage",2);d([b()],m.prototype,"_sortField",2);d([b()],m.prototype,"_sortDirection",2);d([b()],m.prototype,"_hoveredHeaderColumnField",2);d([b()],m.prototype,"_pendingFilterValues",2);d([b()],m.prototype,"_filterSearchQuery",2);m=d([y("ngc-table")],m);export{m as NgcTable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Plugin as f,Command as v}from"../../../../../@ckeditor_ckeditor5-core@47.
|
|
1
|
+
import{Plugin as f,Command as v}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{logWarning as y,CKEditorError as g,first as x}from"../../../../../@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ButtonView as T,createDropdown as B,addToolbarToDropdown as E,MenuBarMenuView as D,MenuBarMenuListView as k,MenuBarMenuListItemView as N,MenuBarMenuListItemButtonView as _}from"../../../../../@ckeditor_ckeditor5-ui@47.6.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconAlignLeft as I,IconAlignRight as V,IconAlignCenter as M,IconAlignJustify as O}from"../../../../../@ckeditor_ckeditor5-icons@47.6.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";const b=["left","right","center","justify"];function p(i){return b.includes(i)}function A(i,e){return e.contentLanguageDirection=="rtl"?i==="right":i==="left"}function w(i){const e=i.map(t=>{let o;return typeof t=="string"?o={name:t}:o=t,o}).filter(t=>{const o=b.includes(t.name);return o||y("alignment-config-name-not-recognized",{option:t}),o}),n=e.filter(t=>!!t.className).length;if(n&&n<e.length)throw new g("alignment-config-classnames-are-missing",{configuredOptions:i});return e.forEach((t,o,a)=>{const s=a.slice(o+1);if(s.some(r=>r.name==t.name))throw new g("alignment-config-name-already-defined",{option:t,configuredOptions:i});if(t.className&&s.some(l=>l.className==t.className))throw new g("alignment-config-classname-already-defined",{option:t,configuredOptions:i})}),e}const h="alignment";class L extends v{refresh(){const n=this.editor.locale,t=x(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value=n.contentLanguageDirection==="rtl"?"right":"left"}execute(e={}){const n=this.editor,t=n.locale,o=n.model,a=o.document,s=e.value;o.change(c=>{const r=Array.from(a.selection.getSelectedBlocks()).filter(d=>this._canBeAligned(d)),l=r[0].getAttribute("alignment");A(s,t)||l===s||!s?C(r,c):P(r,c,s)})}_canBeAligned(e){return this.editor.model.schema.checkAttribute(e,h)}}function C(i,e){for(const n of i)e.removeAttribute(h,n)}function P(i,e,n){for(const t of i)e.setAttribute(h,n,t)}class S extends f{static get pluginName(){return"AlignmentEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("alignment",{options:b.map(n=>({name:n}))})}init(){const e=this.editor,n=e.locale,t=e.model.schema,a=w(e.config.get("alignment.options")).filter(l=>p(l.name)&&!A(l.name,n)),s=a.some(l=>!!l.className);t.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),s?e.conversion.attributeToAttribute(j(a)):e.conversion.for("downcast").attributeToAttribute(z(a));const c=F(a);for(const l of c)e.conversion.for("upcast").attributeToAttribute(l);const r=U(a);for(const l of r)e.conversion.for("upcast").attributeToAttribute(l);e.commands.add("alignment",new L(e))}}function z(i){const e={};for(const{name:t}of i)e[t]={key:"style",value:{"text-align":t}};return{model:{key:"alignment",values:i.map(t=>t.name)},view:e}}function F(i){const e=[];for(const{name:n}of i)e.push({view:{key:"style",value:{"text-align":n}},model:{key:"alignment",value:n}});return e}function U(i){const e=[];for(const{name:n}of i)e.push({view:{key:"align",value:n},model:{key:"alignment",value:n}});return e}function j(i){const e={};for(const t of i)e[t.name]={key:"class",value:t.className};return{model:{key:"alignment",values:i.map(t=>t.name)},view:e}}const u=new Map([["left",I],["right",V],["center",M],["justify",O]]);class J extends f{get localizedOptionTitles(){const e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}static get pluginName(){return"AlignmentUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,n=w(e.config.get("alignment.options"));n.map(t=>t.name).filter(p).forEach(t=>this._addButton(t)),this._addToolbarDropdown(n),this._addMenuBarMenu(n)}_addButton(e){this.editor.ui.componentFactory.add(`alignment:${e}`,t=>this._createButton(t,e))}_createButton(e,n,t={}){const o=this.editor,a=o.commands.get("alignment"),s=new T(e);return s.set({label:this.localizedOptionTitles[n],icon:u.get(n),tooltip:!0,isToggleable:!0,...t}),s.bind("isEnabled").to(a),s.bind("isOn").to(a,"value",c=>c===n),this.listenTo(s,"execute",()=>{o.execute("alignment",{value:n}),o.editing.view.focus()}),s}_addToolbarDropdown(e){const n=this.editor;n.ui.componentFactory.add("alignment",o=>{const a=B(o),s=o.uiLanguageDirection==="rtl"?"w":"e",c=o.t;E(a,()=>e.map(m=>this._createButton(o,m.name,{tooltipPosition:s})),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:c("Text alignment toolbar")}),a.buttonView.set({label:c("Text alignment"),tooltip:!0}),a.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const r=o.contentLanguageDirection==="rtl"?u.get("right"):u.get("left"),l=n.commands.get("alignment");return a.buttonView.bind("icon").to(l,"value",m=>u.get(m)||r),a.bind("isEnabled").to(l,"isEnabled"),this.listenTo(a,"execute",()=>{n.editing.view.focus()}),a})}_addMenuBarMenu(e){const n=this.editor;n.ui.componentFactory.add("menuBar:alignment",t=>{const o=n.commands.get("alignment"),a=t.t,s=new D(t),c=new k(t);s.bind("isEnabled").to(o),c.set({ariaLabel:a("Text alignment"),role:"menu"}),s.buttonView.set({label:a("Text alignment")});for(const r of e){const l=new N(t,s),m=new _(t);m.delegate("execute").to(s),m.set({label:this.localizedOptionTitles[r.name],icon:u.get(r.name),role:"menuitemcheckbox",isToggleable:!0}),m.on("execute",()=>{n.execute("alignment",{value:r.name}),n.editing.view.focus()}),m.bind("isOn").to(o,"value",d=>d===r.name),m.bind("isEnabled").to(o,"isEnabled"),l.children.add(m),c.items.add(l)}return s.panelView.children.add(c),s})}}class K extends f{static get requires(){return[S,J]}static get pluginName(){return"Alignment"}static get isOfficialPlugin(){return!0}}export{K as Alignment,L as AlignmentCommand,S as AlignmentEditing,J as AlignmentUI,b as _ALIGNMENT_SUPPORTED_OPTIONS,p as _isAlignmentSupported,A as _isDefaultAlignment,w as _normalizeAlignmentOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Plugin as y}from"../../../../../@ckeditor_ckeditor5-core@47.
|
|
1
|
+
import{Plugin as y}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as P}from"../../../../../@ckeditor_ckeditor5-typing@47.6.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{ModelLiveRange as B,ModelSchemaContext as S}from"../../../../../@ckeditor_ckeditor5-engine@47.6.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{first as q}from"../../../../../@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";function m(o,t,e,s){let a,n=null;typeof s=="function"?a=s:(n=o.commands.get(s),a=()=>{o.execute(s)}),o.model.document.on("change:data",(g,l)=>{if(n&&!n.isEnabled||!t.isEnabled)return;const r=q(o.model.document.selection.getRanges());if(!r.isCollapsed||l.isUndo||!l.isLocal)return;const h=Array.from(o.model.document.differ.getChanges()),c=h[0];if(h.length!=1||c.type!=="insert"||c.name!="$text"||c.length!=1)return;const i=c.position.parent;if(i.is("element","codeBlock")||i.is("element","listItem")&&typeof s!="function"&&!["numberedList","bulletedList","todoList"].includes(s)||n&&n.value===!0)return;const u=i.getChild(0),A=o.model.createRangeOn(u);if(!A.containsRange(r)&&!r.end.isEqual(A.end))return;const p=e.exec(u.data.substr(0,r.end.offset));p&&o.model.enqueueChange(d=>{const f=o.model.document.selection,L=d.createPositionAt(i,0),$=d.createPositionAt(i,p[0].length),k=new B(L,$);if(a({match:p})!==!1){const x=Array.from(f.getAttributes());d.remove(k);const C=f.getFirstRange(),v=d.createRangeIn(i);i.isEmpty&&!v.isEqual(C)&&!v.containsRange(C,!0)&&d.remove(i),F(d,f,x)}k.detach(),o.model.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})})})}function F(o,t,e){const s=o.model.schema,a=t.getFirstPosition();let n=new S(a);s.checkChild(n,"$text")&&(n=n.push("$text"));for(const[g,l]of e)s.checkAttribute(n,g)&&o.setSelectionAttribute(g,l)}function b(o,t,e,s){let a,n;e instanceof RegExp?a=e:n=e,n=n||(g=>{let l;const r=[],h=[];for(;(l=a.exec(g))!==null&&!(l&&l.length<4);){let{index:c,"1":i,"2":u,"3":A}=l;const p=i+u+A;c+=l[0].length-p.length;const d=[c,c+i.length],f=[c+i.length+u.length,c+i.length+u.length+A.length];r.push(d),r.push(f),h.push([c+i.length,c+i.length+u.length])}return{remove:r,format:h}}),o.model.document.on("change:data",(g,l)=>{if(l.isUndo||!l.isLocal||!t.isEnabled)return;const r=o.model,h=r.document.selection;if(!h.isCollapsed)return;const c=Array.from(r.document.differ.getChanges()),i=c[0];if(c.length!=1||i.type!=="insert"||i.name!="$text"||i.length!=1)return;const u=h.focus,A=u.parent,{text:p,range:d}=I(r.createRange(r.createPositionAt(A,0),u),r),f=n(p),L=R(d.start,f.format,r),$=R(d.start,f.remove,r);L.length&&$.length&&r.enqueueChange(k=>{if(s(k,L)!==!1){for(const x of $.reverse())k.remove(x);r.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})}})})}function R(o,t,e){return t.filter(s=>s[0]!==void 0&&s[1]!==void 0).map(s=>e.createRange(o.getShiftedBy(s[0]),o.getShiftedBy(s[1])))}function I(o,t){let e=o.start;return{text:Array.from(o.getItems()).reduce((a,n)=>!(n.is("$text")||n.is("$textProxy"))||n.getAttribute("code")?(e=t.createPositionAfter(n),""):a+n.data,""),range:t.createRange(e,o.end)}}class Q extends y{static get requires(){return[P]}static get pluginName(){return"Autoformat"}static get isOfficialPlugin(){return!0}afterInit(){const t=this.editor,e=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&m(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&m(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&m(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&m(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const e=_(this.editor,"bold");b(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),b(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(t.get("italic")){const e=_(this.editor,"italic");b(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),b(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(t.get("code")){const e=_(this.editor,"code");b(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(t.get("strikethrough")){const e=_(this.editor,"strikethrough");b(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(e=>{const s=e[7],a=new RegExp(`^(#{${s}})\\s$`);m(this.editor,this,a,()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&m(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&m(t,this,/^```$/,()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&m(this.editor,this,/^---$/,"horizontalLine")}}function _(o,t){return(e,s)=>{if(!o.commands.get(t).isEnabled)return!1;const n=o.model.schema.getValidRanges(s,t);for(const g of n)e.setAttribute(t,!0,g);e.removeSelectionAttribute(t)}}export{Q as Autoformat,m as blockAutoformatEditing,b as inlineAutoformatEditing};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Plugin as a,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@47.
|
|
1
|
+
import{Plugin as a,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{DomEmitterMixin as o}from"../../../../../@ckeditor_ckeditor5-utils@47.6.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as r}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";class _ extends a{adapter;_debouncedSave;_lastDocumentVersion;_savePromise;_domEmitter;_config;_pendingActions;_makeImmediateSave;_action=null;static get pluginName(){return"Autosave"}static get isOfficialPlugin(){return!0}static get requires(){return[n]}constructor(t){super(t);const e=t.config.get("autosave")||{},i=e.waitingTime||1e3;this.set("state","synchronized"),this._debouncedSave=r(this._save.bind(this),i),this._lastDocumentVersion=t.model.document.version,this._savePromise=null,this._domEmitter=new(o()),this._config=e,this._pendingActions=t.plugins.get(n),this._makeImmediateSave=!1}init(){const t=this.editor,e=t.model.document;this.listenTo(t,"ready",()=>{this.listenTo(e,"change:data",(i,s)=>{this._saveCallbacks.length&&s.isLocal&&(this.state==="synchronized"&&(this.state="waiting",this._setPendingAction()),this.state==="waiting"&&this._debouncedSave())})}),this.listenTo(t,"destroy",()=>this._flush(),{priority:"highest"});this._domEmitter.listenTo(window,"beforeunload",(i,s)=>{this._pendingActions.hasAny&&(s.returnValue=this._pendingActions.first.message)})}destroy(){this._domEmitter.stopListening(),super.destroy()}save(){return this._debouncedSave.cancel(),this._save()}_flush(){this._debouncedSave.flush()}_save(){return this._savePromise?(this._makeImmediateSave=this.editor.model.document.version>this._lastDocumentVersion,this._savePromise):(this._setPendingAction(),this.state="saving",this._lastDocumentVersion=this.editor.model.document.version,this._savePromise=Promise.resolve().then(()=>Promise.all(this._saveCallbacks.map(t=>t(this.editor)))).finally(()=>{this._savePromise=null}).then(()=>{if(this._makeImmediateSave)return this._makeImmediateSave=!1,this._save();this.editor.model.document.version>this._lastDocumentVersion?(this.state="waiting",this._debouncedSave()):(this.state="synchronized",this._pendingActions.remove(this._action),this._action=null)}).catch(t=>{throw this.state="error",this.state="saving",this._debouncedSave(),t}),this._savePromise)}_setPendingAction(){const t=this.editor.t;this._action||(this._action=this._pendingActions.add(t("Saving changes")))}get _saveCallbacks(){const t=[];return this.adapter&&this.adapter.save&&t.push(this.adapter.save),this._config.save&&t.push(this._config.save),t}}export{_ as Autosave};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Plugin as r,Command as U}from"../../../../../@ckeditor_ckeditor5-core@47.
|
|
1
|
+
import{Plugin as r,Command as U}from"../../../../../@ckeditor_ckeditor5-core@47.6.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ModelDocumentSelection as w}from"../../../../../@ckeditor_ckeditor5-engine@47.6.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{IconBold as R,IconCode as F,IconItalic as v,IconStrikethrough as L,IconSubscript as K,IconSuperscript as $,IconUnderline as H}from"../../../../../@ckeditor_ckeditor5-icons@47.6.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as l,MenuBarMenuListItemButtonView as a}from"../../../../../@ckeditor_ckeditor5-ui@47.6.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{TwoStepCaretMovement as N,inlineHighlight as q}from"../../../../../@ckeditor_ckeditor5-typing@47.6.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";class d extends U{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,o=e.document.selection,c=t.forceValue===void 0?!this.value:t.forceValue;e.change(m=>{if(o.isCollapsed)c?m.setSelectionAttribute(this.attributeKey,!0):m.removeSelectionAttribute(this.attributeKey);else{const I=e.schema.getValidRanges(o.getRanges(),this.attributeKey,{includeEmptyRanges:!0});for(const n of I){let S=n,x=this.attributeKey;n.isCollapsed&&(S=n.start.parent,x=w._getStoreAttributeKey(this.attributeKey)),c?m.setAttribute(x,c,S):m.removeAttribute(x,S)}}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,i=t.document.selection;if(i.isCollapsed)return i.hasAttribute(this.attributeKey);for(const o of i.getRanges())for(const c of o.getItems())if(e.checkAttribute(c,this.attributeKey))return c.hasAttribute(this.attributeKey);return!1}}const p="bold";class D extends r{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:p}),t.model.schema.setAttributeProperties(p,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:p,view:"strong",upcastAlso:["b",i=>{const o=i.getStyle("font-weight");return o&&(o=="bold"||Number(o)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(p,new d(t,p)),t.keystrokes.set("CTRL+B",p),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function g({editor:s,commandName:t,plugin:e,icon:i,label:o,keystroke:c}){return m=>{const I=s.commands.get(t),n=new m(s.locale);return n.set({label:o,icon:i,keystroke:c,isToggleable:!0}),n.bind("isEnabled").to(I,"isEnabled"),n.bind("isOn").to(I,"value"),n instanceof a?n.set({role:"menuitemcheckbox"}):n.set({tooltip:!0}),e.listenTo(n,"execute",()=>{s.execute(t),s.editing.view.focus()}),n}}const E="bold";class V extends r{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:E,plugin:this,icon:R,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(E,()=>i(l)),t.ui.componentFactory.add("menuBar:"+E,()=>i(a))}}class ct extends r{static get requires(){return[D,V]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}}const u="code",_="ck-code_selected";class M extends r{static get pluginName(){return"CodeEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[N]}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:u}),t.model.schema.setAttributeProperties(u,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:u,view:"code"}),t.commands.add(u,new d(t,u)),t.plugins.get(N).registerAttribute(u),q(t,u,"code",_),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}const C="code";class G extends r{static get pluginName(){return"CodeUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:C,plugin:this,icon:F,label:e("Code")});t.ui.componentFactory.add(C,()=>i(l)),t.ui.componentFactory.add("menuBar:"+C,()=>i(a))}}class at extends r{static get requires(){return[M,G]}static get pluginName(){return"Code"}static get isOfficialPlugin(){return!0}}const h="italic";class X extends r{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:h}),t.model.schema.setAttributeProperties(h,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:h,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(h,new d(t,h)),t.keystrokes.set("CTRL+I",h),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const A="italic";class W extends r{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:A,plugin:this,icon:v,keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(A,()=>i(l)),t.ui.componentFactory.add("menuBar:"+A,()=>i(a))}}class ut extends r{static get requires(){return[X,W]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}}const b="strikethrough";class j extends r{static get pluginName(){return"StrikethroughEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:b}),t.model.schema.setAttributeProperties(b,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:b,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(b,new d(t,b)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}}const B="strikethrough";class z extends r{static get pluginName(){return"StrikethroughUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:B,plugin:this,icon:L,keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(B,()=>i(l)),t.ui.componentFactory.add("menuBar:"+B,()=>i(a))}}class lt extends r{static get requires(){return[j,z]}static get pluginName(){return"Strikethrough"}static get isOfficialPlugin(){return!0}}const f="subscript";class J extends r{static get pluginName(){return"SubscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:f}),t.model.schema.setAttributeProperties(f,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:f,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(f,new d(t,f))}}const O="subscript";class Q extends r{static get pluginName(){return"SubscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:O,plugin:this,icon:K,label:e("Subscript")});t.ui.componentFactory.add(O,()=>i(l)),t.ui.componentFactory.add("menuBar:"+O,()=>i(a))}}class dt extends r{static get requires(){return[J,Q]}static get pluginName(){return"Subscript"}static get isOfficialPlugin(){return!0}}const y="superscript";class Y extends r{static get pluginName(){return"SuperscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:y}),t.model.schema.setAttributeProperties(y,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:y,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(y,new d(t,y))}}const T="superscript";class Z extends r{static get pluginName(){return"SuperscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:T,plugin:this,icon:$,label:e("Superscript")});t.ui.componentFactory.add(T,()=>i(l)),t.ui.componentFactory.add("menuBar:"+T,()=>i(a))}}class gt extends r{static get requires(){return[Y,Z]}static get pluginName(){return"Superscript"}static get isOfficialPlugin(){return!0}}const k="underline";class tt extends r{static get pluginName(){return"UnderlineEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:k}),t.model.schema.setAttributeProperties(k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:k,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(k,new d(t,k)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}}const P="underline";class et extends r{static get pluginName(){return"UnderlineUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:P,plugin:this,icon:H,label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(P,()=>i(l)),t.ui.componentFactory.add("menuBar:"+P,()=>i(a))}}class mt extends r{static get requires(){return[tt,et]}static get pluginName(){return"Underline"}static get isOfficialPlugin(){return!0}}export{d as AttributeCommand,ct as Bold,D as BoldEditing,V as BoldUI,at as Code,M as CodeEditing,G as CodeUI,ut as Italic,X as ItalicEditing,W as ItalicUI,lt as Strikethrough,j as StrikethroughEditing,z as StrikethroughUI,dt as Subscript,J as SubscriptEditing,Q as SubscriptUI,gt as Superscript,Y as SuperscriptEditing,Z as SuperscriptUI,mt as Underline,tt as UnderlineEditing,et as UnderlineUI,g as _getBasicStylesButtonCreator};
|